负载分担
R1:
system-view
Int g0/0/0
Ip add 192.168.1.1 24
Int g0/0/1
Ip add 12.1.1.1 24
Int g0/0/2
Ip add 21.1.1.1 24
Ip route-static 192.168.2.0 24 12.1.1.2
Ip route-static 192.168.2.0 24 21.1.1.2
R2
system-view
Int g0/0/0
Ip add 12.1.1.2 24
Int g0/0/1
Ip add 192.168.2.1 24
Int g0/0/2
Ip add 21.1.1.2 24
Ip route-static 192.168.1.0 24 12.1.1.1
Ip route-static 192.168.1.0 24 21.1.1.1
路由备份
R1:
Ip route-static 192.168.2.0 24 12.1.1.2
Ip route-static 192.168.2.0 24 21.1.1.2 pre 100
R2
Ip route-static 192.168.1.0 24 12.1.1.1
Ip route-static 192.168.1.0 24 21.1.1.1 pre 100
默认路由
R1:
Ip route-static 0.0.0.0 0.0.0.0 12.1.1.2
R2:
Ip route-static 0.0.0.0 0.0.0.0 12.1.1.1