拓扑图
1、配置各个设备的IP地址。
PC1
PC2
AR1:
system-view
[Huawei]interface GigabitEthernet 0/0/2
[Huawei-GigabitEthernet0/0/2]ip address 192.168.1.254 24
[Huawei-GigabitEthernet0/0/2]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 100.100.1.1 24
[Huawei-GigabitEthernet0/0/1]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 150.150.1.1 24
[Huawei]ip route-static 192.168.2.0 24 100.100.1.2
[Huawei]ip route-static 192.168.2.0 24 150.150.1.2 preference 70 //配置静态浮动路由
AR2:
system-view
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 150.150.1.2 24
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 10.20.1.1 24
[Huawei]ip route-static 192.168.1.0 24 150.150.1.1
[Huawei]ip route-static 192.168.2.0 24 10.20.1.2
AR3:
system-view
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 10.20.1.2 24
[Huawei-GigabitEthernet0/0/0]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 100.100.1.2 24
[Huawei-GigabitEthernet0/0/1]interface GigabitEthernet 0/0/2
[Huawei-GigabitEthernet0/0/2]ip address 192.168.2.254 24
[Huawei]ip route-static 192.168.1.0 24 100.100.1.1
[Huawei]ip route-static 192.168.1.0 24 10.20.1.1 preference 70
PC跟着路由
关键词:eNSP浮动静态路由(ensp浮动静态路由及负载均衡)