路由器R1上的配置:
< Huawei >
< Huawei >sys
[Huawei]undo info-center enable
[Huawei]sys R1
[R1]
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip address 10.0.12.1 24
[R1-GigabitEthernet0/0/1]int g0/0/2
[R1-GigabitEthernet0/0/2]ip address 10.0.13.1 24
[R1-GigabitEthernet0/0/2]q
[R1]int loop0
[R1-LoopBack0]ip address 10.0.1.1 24
[R1-LoopBack0]q
[R1]ip route-static 10.0.23.0 24 g0/0/1 10.0.12.2
[R1]ip route-static 10.0.23.0 24 g0/0/2 10.0.13.3
[R1]ip route-static 10.0.3.3 24 g0/0/1 10.0.12.2
[R1]ip route-static 10.0.3.3 24 g0/0/2 10.0.13.3
[R1]ip route-static 10.0.2.2 24 g0/0/2 10.0.13.3
[R1]ip route-static 10.0.2.2 24 g0/0/1 10.0.12.2
路由器R2上的配置:
< Huawei >sys
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sys R2
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip address 10.0.12.2 24
[R2-GigabitEthernet0/0/1]int g0/0/0
[R2-GigabitEthernet0/0/0]ip address 10.0.23.2 24
[R2-GigabitEthernet0/0/0]q
[R2]int loop0
[R2-LoopBack0]ip address 10.0.2.2 24
[R2-LoopBack0]q
[R2]ip route-static 10.0.13.0 24 g0/0/0 10.0.23.3
[R2]ip route-static 10.0.13.0 24 g0/0/1 10.0.12.1
[R2]ip route-static 10.0.3.3 24 g0/0/1 10.0.12.1
[R2]ip route-static 10.0.3.3 24 g0/0/0 10.0.23.3
[R2]ip route-static 10.0.1.1 24 g0/0/0 10.0.23.3
[R2]ip route-static 10.0.2.2 24 g0/0/1 10.0.12.1
路由器R3上的配置:
< Huawei >sys
[Huawei]undo info-center enable
[Huawei]sys R3
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip address 10.0.23.3 24
[R3-GigabitEthernet0/0/0]int g0/0/2
[R3-GigabitEthernet0/0/2]ip address 10.0.13.3 24
[R3-GigabitEthernet0/0/2]q
[R3]int loop0
[R3-LoopBack0]ip address 10.0.3.3 24
[R3-LoopBack0]q
[R3]ip route-static 10.0.12.0 24 g0/0/2 10.0.13.1
[R3]ip route-static 10.0.12.0 24 g0/0/0 10.0.23.2
[R3]ip route-static 10.0.2.2 24 g0/0/0 10.0.23.2
[R3]ip route-static 10.0.2.2 24 g0/0/2 10.0.13.1
[R3]ip route-static 10.0.1.1 24 g0/0/2 10.0.13.1
[R3]ip route-static 10.0.1.1 24 g0/0/0 10.0.23.2