浮动静态路由
环境:公司使用f0/-快速以太网(100Mbp/s的以太网)进行数据传输,为了网络通信发生故障,用了一条串行线路做沉余备份。
一些协议的管理距离
(协议) (管理距离)
直连接口 0
静态路由(使用外出接口) 0
静态路由(使用下一条IP) 1
EIGRP汇总路由 5
OSPF 110
RIP 120
R1的配置
Router(config)#router rip
Router(config-router)#network 192.168.10.0
Router(config-router)#network 192.168.50.0
Router(config)#
Router(config)#ip route 192.168.100.0 255.255.255.0 23.1.1.2 130
R2的配置
Router(config)#router rip
Router(config-router)#network 192.168.10.0
Router(config-router)#network 192.168.100.0
Router(config)#ip route 192.168.50.0 255.255.255.0 23.1.1.1 130
验证:在R1上使用debug ip icmp
并查看路由表
Router#ping 192.168.100.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.100.1, timeout is 2 seconds:
!
ICMP: echo reply rcvd, src 192.168.100.1, dst 192.168.10.1!
ICMP: echo reply rcvd, src 192.168.100.1, dst 192.168.10.1!
ICMP: echo reply rcvd, src 192.168.100.1, dst 192.168.10.1!
ICMP: echo reply rcvd, src 192.168.100.1, dst 192.168.10.1!
Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms
断掉以太网线路再查看通信走的是串行线路!!
转载于:https://blog.51cto.com/yuanliujun/384302