R1:
GE0/0/0: 192.168.12.1/24
| |
GE0/0/0: 192.168.12.2/24
R2:
GE0/0/1: 192.168.23.2/24
| |
GE0/0/0: 192.168.23.3/24
R3
静态路由的配置:
关联下一跳IP的方式
[Router]:ip route-static 网络号 掩码 下一跳IP地址
关联出interface :
[Router]ip route-static 网络号 掩码 出interface
关联出interface and 下一跳IP的方式:
[Router]ip route-static 网络号 掩码 出interface 下一跳IP地址
[R1]ip route-static 192.168.100.0 255.255.255.0 192.168.12.2
[R1]ip route-static 192.168.23.0(target network) 24 192.168.12.2(next route)
[R3]ip route-static 192.168.12.0(target network) 24 192.168.23.2