目录
一、拓扑图
二、配置过程
1、
R-ZY-A路由配置命令
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R-ZY-A
R-ZY-A(config)#interface fastEthernet 0/0
R-ZY-A(config-if)#ip address 192.168.10.1 255.255.255.0
R-ZY-A(config-if)#no shutdown
R-ZY-A(config-if)#exit
R-ZY-A(config)#interface fastEthernet 1/1
R-ZY-A(config-if)#ip address 192.168.30.1 255.255.255.0
R-ZY-A(config-if)#no shutdown
R-ZY-A(config-if)#exit
R-ZY-A(config)#interface fastEthernet 0/1
R-ZY-A(config-if)#ip address 192.168.50.1 255.255.255.0
R-ZY-A(config-if)#no shutdown
R-ZY-A(config-if)#exit
R-ZY-A(config)#interface fastEthernet 1/0
R-ZY-A(config-if)#ip address 192.168.60.1 255.255.255.0
R-ZY-A(config-if)#no shutdown
R-ZY-A(config-if)#exit
R-ZY-A(config)#ip route 192.168.70.0 255.255.255.0 192.168.50.2
R-ZY-A(config)#ip route 192.168.80.0 255.255.255.0 192.168.50.2
R-ZY-A(config)#ip route 192.168.20.0 255.255.255.0 192.168.50.2
R-ZY-A(config)#ip route 192.168.40.0 255.255.255.0 192.168.50.2
2、
R-ZY-B路由配置命令
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R-ZY-B
R-ZY-B(config)#interface fastEthernet 1/0
R-ZY-B(config-if)#ip address 192.168.60.2 255.255.255.0
R-ZY-B(config-if)#no shutdown
R-ZY-B(config-if)#exit
R-ZY-B(config)#interface fastEthernet 0/1
R-ZY-B(config-if)#ip address 192.168.80.1 255.255.255.0
R-ZY-B(config-if)#no shutdown
R-ZY-B(config-if)#exit
R-ZY-B(config)#ip route 192.168.10.0 255.255.255.0 192.168.60.1
R-ZY-B(config)#ip route 192.168.30.0 255.255.255.0 192.168.60.1
R-ZY-B(config)#ip route 192.168.50.0 255.255.255.0 192.168.60.1
R-ZY-B(config)#ip route 192.168.70.0 255.255.255.0 192.168.80.2
R-ZY-B(config)#ip route 192.168.20.0 255.255.255.0 192.168.80.2
R-ZY-B(config)#ip route 192.168.40.0 255.255.255.0 192.168.80.2
3、
R-ZY-C路由配置命令
Router>enable
Router#configure
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R-ZY-C
R-ZY-C(config)#interface fastEthernet 1/0
R-ZY-C(config-if)#ip address 192.168.70.2 255.255.255.0
R-ZY-C(config-if)#no shutdown
R-ZY-C(config-if)#exit
R-ZY-C(config)#interface fastEthernet 0/1
R-ZY-C(config-if)#ip address 192.168.80.2 255.255.255.0
R-ZY-C(config-if)#no shutdown
R-ZY-C(config-if)#exit
R-ZY-C(config)#interface fastEthernet 0/0
R-ZY-C(config-if)#ip address 192.168.20.1 255.255.255.0
R-ZY-C(config-if)#no shutdown
R-ZY-C(config-if)#exit
R-ZY-C(config)#interface fastEthernet 1/1
R-ZY-C(config-if)#ip address 192.168.40.1 255.255.255.0
R-ZY-C(config-if)#no shutdown
R-ZY-C(config-if)#exit
R-ZY-C(config)#ip route 192.168.10.0 255.255.255.0 192.168.80.1
R-ZY-C(config)#ip route 192.168.30.0 255.255.255.0 192.168.80.1
R-ZY-C(config)#ip route 192.168.50.0 255.255.255.0 192.168.80.1
R-ZY-C(config)#ip route 192.168.60.0 255.255.255.0 192.168.80.1
4、
R-ZY-D路由配置命令
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R-ZY-B
R-ZY-B(config)#interface fastEthernet 0/1
R-ZY-B(config-if)#ip address 192.168.50.2 255.255.255.0
R-ZY-B(config-if)#no shutdown
R-ZY-B(config-if)#exit
R-ZY-B(config)#interface fastEthernet 1/0
R-ZY-B(config-if)#ip address 192.168.70.1 255.255.255.0
R-ZY-B(config-if)#no shutdown
R-ZY-B(config-if)#exit
R-ZY-C(config)#ip route 192.168.10.0 255.255.255.0 192.168.50.1
R-ZY-C(config)#ip route 192.168.30.0 255.255.255.0 192.168.50.1
R-ZY-C(config)#ip route 192.168.60.0 255.255.255.0 192.168.50.1
R-ZY-C(config)#ip route 192.168.20.0 255.255.255.0 192.168.70.2
R-ZY-C(config)#ip route 192.168.40.0 255.255.255.0 192.168.70.2
R-ZY-C(config)#ip route 192.168.80.0 255.255.255.0 192.168.70.2
三、验证过程
版权声明:本文为longlangci原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。