三层交换机路由配置实例 联系客服

发布时间 : 星期三 文章三层交换机路由配置实例更新完毕开始阅读30d721ba76eeaeaad1f33091

S3550(conifg-if)#ip address 192.168.20.1 255.255.255.0 S3550(conifg-if)#no shutdown S3550(conifg-if)#exit S3550(conifg)#

第4步:路由器基本配置

Red-Giant(config)#hostname RouterA RouterA (config)#interface Fasterethernet 0/0

RouterA (config-if)#ip address 192.168.30.1 255.255.255.0 RouterA (config-if)#no shutdown RouterA (config-if)#Exit

RouterA (config)#interface Fasterethernet 0/1

RouterA (config-if)#ip address 192.168.20.2 255.255.255.0 RouterA (config-if)#no shutdown RouterA (config-if)#Exit

RouterA (config)#line VTY 0 4 RouterA (config-line)#login

RouterA (config-line)#password 100 RouterA (config-line)#exit RouterA (config)#enable secret 100 第5步:动态路由协议RIP配置

在三层交换机上进行动态路由协议RIP配置 S3550(conifg)#router rip

S3550(conifg-router)#network 192.168.10.0 S3550(conifg-router)#network 192.168.20.0 S3550(conifg-router)#end S3550#

在路由器上进行动态路由协议RIP配置 RouterA (config)# router rip

RouterA (config-router)#network 192.168.20.0 RouterA (config-router)#network 192.168.30.0 RouterA (config-router)#end 第6步:查看路由表 S3550#show ip route RouterA #show ip route

第7步:在两台PC上做相应的网络参数配置,包括IP地址、掩码、网关等。然后分别在两台PC上Ping对方PC的IP地址,验证网络的连通性。