拓展图
AR1:
进入0/0/0和0/0/1口编写两口地址,再写静态代码为路由器Ar1写路
[Huawei-GigabitEthernet0/0/0]ip add 192.168.2.1 24
ip route-static 192.168.3.0 255.255.255.0 192.168.2.2
ip route-static 192.168.4.0 255.255.255.0 192.168.2.2
ip route-static 192.168.5.0 255.255.255.0 192.168.4.2
其余相同方法
AR2代码:
[Huawei-GigabitEthernet0/0/0]ip add 192.168.2.2 24
[Huawei-GigabitEthernet0/0/1]ip add 192.168.3.1 24
[Huawei-GigabitEthernet0/0/2]ip add 192.168.4.1 24
ip route-static 192.168.1.0 255.255.255.0 192.168.2.1
ip route-static 192.168.5.0 255.255.255.0 192.168.4.2
AR3代码:
[Huawei-GigabitEthernet0/0/0]ip add 192.168.4.2 24
[Huawei-GigabitEthernet0/0/1]ip add 192.168.5.1 24
ip route-static 192.168.1.0 255.255.255.0 192.168.2.1
ip route-static 192.168.2.0 255.255.255.0 192.168.4.1
ip route-static 192.168.3.0 255.255.255.0 192.168.4.1