首页 > 编程知识 正文

路由交换基本命令(思科路由器和交换机连接)

时间:2023-05-06 10:06:02 阅读:65495 作者:4704

项目要求(1)左侧路由器以下设备不允许动态路由2 )在核心交换机上配置地址池3 )访问层的四台PC使用动态获取IP4。 配置后,需要实现vlan、DHCP、rip、静态路由、默认路由(默认路由)、链路聚合、Telnet和trunk项目的拓扑图。

详细配置如下: R1路由器

接口快速以太网0/0 IP地址10.252.252.254255.255.255.0接口序列0/0/0 IP地址222.1.2.1255

接口快速以太网0/0 IP地址172.1.1.254255.255.255.0接口序列0/0/0 IP地址222.1.2.2255.225

启用密码18300320//进入特权模式密码ipdhcppoolvlan 2网络10.20.1.0255.255.255.255.0默认路由器10.20.1.254 DNS-server8. 8 server8.8.8.8ipdhcppoolvlan 4网络10.20.3.0255.255.0.8 ipdhcppoolvlan 5网络10.20.4.0255.255 encapsulation do t1 qswitchportmodetrunkinterfacefastethernet0/1通道组10 modeonswitchporttrunkencapsulationdot1qswitchportmodetrunkinterfacefastethernet0/2通道组10 modeonswitchporttrunkencapsulationdot1qswitchportmodetrunkinterfacefastethernet0/24 noswitchportipaddress 10.252.252.253255.255.255.0接口VLAN 10 IP地址10.100.1.254255.255.0 I prrress . 252.254 IP route 172.1.1.0255.255.255.010.252.252.254 linevty 04 PAA at

启用密码18300320//进入特权模式的密码ip routing//链路聚合接口端口-通道10交换机witchporttrunkencapsulationdot1qswitchportmodetrunkinterfacefastethernet0/1设置通道组10模式接口快速以太网0/2通道组10 modeonswitchporttrunkencapsulationdot1qswitchportmodetrunnet interfacegigabitetheer1switchporttrunkencapsulationdot1qswitchportmodetrunkinterfacegigabitethernet0/2 switchporttrunkencapsulationdot1qswitchportmodetrunkinterfacevlan2IP地址10.20.1.254255.255.255.255.0 IP helper 接口VLAN4IP地址10.20.3.254255.255.255.0 IP helper -地址10.100.1.254! 接口VLAN5IP地址10.20.4.254255.255.255.0 IP helper -地址10.100.1.254! 接口VLAN 10 IP地址10.100.1.1255.255.255.0.0.010.100.1.254 linevty0.0.4passwor rerese

enable password 18300320//用于进入特权模式的密码接口快速以太网0/1 switchportaccessvlan2switchportmodeaccessinterfacefastethlan 2 2 switchportaccessvlan3switchportmodeaccessinterfacegigabitethernet0/1switchportmodetrunkinterfacevlan 10 IP地址10.100.1

enable password 18300320//用于进入特权模式的密码接口快速以太网0/1 switchportaccessvlan4switchportmodeaccessinterfacefastethlan 4 2 switchportaccessvlan5switchportmodeaccessinterfacegigabitethernet0/2switchportmodetrunk! 接口VLAN1noipaddressshutdown! 要设置接口VLAN 10 IP地址10.100.1.3255.255.255.0 linevty 04 password 18300320//telnet密码登录身份验证:

以上说明是自动取得IP的

以上情况实现了全网通

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。