1拓扑图
2设置路由器R12的接口的IP
int g0/0/0
ip address 192.168.20.254 24
undo shutdown
int g0/0/01
ip address 192.168.1.1 24
undo shutdown
int g2/0/00
ip address 192.168.3.1 24
undo shutdown
3设置路由器R10的接口的IP
int g0/0/0
ip address 192.168.2.1 24
undo shutdown
int g0/0/1
ip address 192.168.1.2 24
undo shutdown
设置路由器R13的接口的IP
int g0/0/0
ip address 192.168.30.254 24
undo shutdown
int g0/0/1
ip address 192.168.10.254 24
undo shutdown
int g1/0/0
ip address 192.168.2.2 24
undo shutdown
int g2/0/0
ip address 192.168.3.2 24
undo shutdown
4设置选择路径
[r12]ip route-static 192.168.30.0 24 192.168.3.2
[r12]ip route-static 192.168.10.0 24 192.168.1.2
[r10]ip route-static 192.168.10.0 24 192.168.2.2
[r10]ip route-static 192.168.20.0 24 192.168.1.1
[R13]ip route-static 192.168.20.0 24 192.168.3.1
5验证pc9经2个路由器ping通pc10
验证pc9经3个路由器ping通pc11
转载于:https://blog.51cto.com/14159400/2339235