资源描述
精选优质文档-倾情为你奉上在路由器上配置Track,实现静态路由器的冗余一、本文目的静态+Track,实现路由的冗余切换二、技术简介静态路由:管理员手工填写,管理距离为1或0(静态路由下一跳为接口的情况下)Track:追踪技术IP SLA:IP 服务等级,通过该技术网络连通性三、实验环境模拟器:GNS3路由器:unzip-c3725-adventerprisek9-mz.124-15.T5.bin四、网络拓扑五、环境要求.在路由器访问对端lo1接口默认走上面的链路,当上面的链路出问题时,切换到下面的链路.在路由器访问对端lo2接口默认走下面的链路,当下面的链路出问题时,切换到上面的链路六、网络配置R1:track 1 rtr 1 reachability /跟踪路由可靠性track 2 rtr 2 reachabilityinterface Loopback1ip address 10.80.1.1 255.255.255.0interface Loopback2ip address 10.80.2.1 255.255.255.interface FastEthernet0/0ip address 172.20.0.17 255.255.255.252interface FastEthernet0/1ip address 172.20.0.29 255.255.255.252ip route 10.70.1.0 255.255.255.0 172.20.0.18 track 1 /在此路由后面跟track,如果trackdown了,此路由失效,因为路由器会选择备份的路由ip route 10.70.2.0 255.255.255.0 172.20.0.30 track 2ip route 10.70.1.0 255.255.255.0 172.20.0.30 10 /配置管理距离为10,使该路由作为备份路由,当track的主路由失败后,则选择这个路由ip route 10.70.2.0 255.255.255.0 172.20.0.18 10ip sla 1 /配置SLA,根据icmp来判断链路是否可靠icmp-echo 172.20.0.18 source-ip 172.20.0.17ip sla schedule 1 life forever start-time now /配置schedule,是SLA立即生效,有效期为永远ip sla 2icmp-echo 172.20.0.30 source-interface FastEthernet0/1ip sla schedule 2 life forever start-time nowR2:track 1 rtr 1 reachabilitytrack 2 rtr 2 reachabilityinterface Loopback1ip address 10.70.1.1 255.255.255.0interface Loopback2ip address 10.70.2.1 255.255.255.0interface FastEthernet0/0ip address 172.20.0.18 255.255.255.252interface FastEthernet0/1ip address 172.20.0.30 255.255.255.252ip route 10.80.1.0 255.255.255.0 172.20.0.17 track 1ip route 10.80.2.0 255.255.255.0 172.20.0.29 track 2ip route 10.80.1.0 255.255.255.0 172.20.0.29 10ip route 10.80.2.0 255.255.255.0 172.20.0.17 10ip sla 1icmp-echo 172.20.0.17 source-ip 172.20.0.18ip sla schedule 1 life forever start-time nowip sla 2icmp-echo 172.20.0.29 source-interface FastEthernet0/1ip sla schedule 2 life forever start-time now七、验证R2#sho track briefTrack Object Parameter Value Last Change1 rtr 1 reachability Up 00:00:372 rtr 2 reachability Up 01:10:57R2#sho trackTrack 1Response Time Reporter 1 reachabilityReachability is Up8 changes, last change 00:01:58Latest operation return code: OKLatest RTT (millisecs) 32Tracked by:STATIC-IP-ROUTING 0Track 2Response Time Reporter 2 reachabilityReachability is Up8 changes, last change 01:12:18Latest operation return code: OKLatest RTT (millisecs) 20Tracked by:STATIC-IP-ROUTING 0可以在R1在配置deny ACL(具体操作不在表述),测试结果如下:专心-专注-专业
展开阅读全文