1、路由器基本配置
R1:
<Huawei>system-view
[Huawei]sysname R1
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip address 10.10.10.1 255.255.255.0
[R1-GigabitEthernet0/0/0]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip address 11.11.11.1 255.255.255.0
R2:
<Huawei>system-view
[Huawei]sysname R2
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]ip address 10.10.10.2 255.255.255.0
[R2-GigabitEthernet0/0/0]interface g0/0/1
[R2-GigabitEthernet0/0/1]ip address 12.12.12.254 255.255.255.0
R3:
<Huawei>system-view
[Huawei]sysname R3
[R3]interface g0/0/0
[R3-GigabitEthernet0/0/0]ip address 11.11.11.2 255.255.255.0
[R3-GigabitEthernet0/0/0]interface g0/0/1
[R3-GigabitEthernet0/0/1]ip address 13.13.13.254 255.255.255.0
2、静态路由
R1
[R1]ip route-static 12.12.12.0 255.255.255.0 10.10.10.2
[R1]ip route-static 13.13.13.0 255.255.255.0 11.11.11.2
R2
[R2]ip route-static 11.11.11.0 255.255.255.0 10.10.10.1
[R2]ip route-static 13.13.13.0 255.255.255.0 10.10.10.1
R3
[R3]ip route-static 10.10.10.0 255.255.255.0 11.11.11.1
[R3]ip route-static 12.12.12.0 255.255.255.0 11.11.11.1
3、默认路由
R1
[R1]ip route-static 0.0.0.0 0.0.0.0 10.10.10.2
[R1]ip route-static 0.0.0.0 0.0.0.0 11.11.11.2
R2
[R2]ip route-static 0.0.0.0 0.0.0.0 10.10.10.1
[R2]ip route-static 0.0.0.0 0.0.0.0 10.10.10.1
R3
[R3]ip route-static 0.0.0.0 0.0.0.0 11.11.11.1
[R3]ip route-static 0.0.0.0 0.0.0.0 11.11.11.1
Cisco 模拟器中静态路由和默认路由设置请参考:https://blog.csdn.net/qq_34889607/article/details/103782200