《在路由器上配置Track-實(shí)現(xiàn)靜態(tài)路由器的冗余(共5頁(yè))》由會(huì)員分享,可在線閱讀,更多相關(guān)《在路由器上配置Track-實(shí)現(xiàn)靜態(tài)路由器的冗余(共5頁(yè))(5頁(yè)珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。
1、精選優(yōu)質(zhì)文檔-----傾情為你奉上
在路由器上配置Track,實(shí)現(xiàn)靜態(tài)路由器的冗余
一、本文目的
靜態(tài)+Track,實(shí)現(xiàn)路由的冗余切換
二、技術(shù)簡(jiǎn)介
靜態(tài)路由:管理員手工填寫(xiě),管理距離為1或0(靜態(tài)路由下一跳為接口的情況下)
Track:追蹤技術(shù)
IP SLA:IP 服務(wù)等級(jí),通過(guò)該技術(shù)網(wǎng)絡(luò)連通性
三、實(shí)驗(yàn)環(huán)境
模擬器:GNS3
路由器:unzip-c3725-adventerprisek9-mz.124-15.T5.bin
四、網(wǎng)絡(luò)拓?fù)?
五、環(huán)境要求
?、?在路由器訪問(wèn)對(duì)端lo1接口默認(rèn)走上面的鏈路,當(dāng)上面的鏈路出問(wèn)
2、題時(shí),切換到下面的鏈路
?、?在路由器訪問(wèn)對(duì)端lo2接口默認(rèn)走下面的鏈路,當(dāng)下面的鏈路出問(wèn)題時(shí),切換到上面的鏈路
六、網(wǎng)絡(luò)配置
R1:
track 1 rtr 1 reachability //跟蹤路由可靠性
track 2 rtr 2 reachability
interface Loopback1
ip address 10.80.1.1 255.255.255.0
interface Loopback2
ip address 10.80.2.1 255.255.255.
interface FastEthernet0/0
i
3、p address 172.20.0.17 255.255.255.252
interface FastEthernet0/1
ip address 172.20.0.29 255.255.255.252
ip route 10.70.1.0 255.255.255.0 172.20.0.18 track 1 //在此路由后面跟track,如果trackdown了,此路由失效,因?yàn)槁酚善鲿?huì)選擇備份的路由
ip route 10.70.2.0 255.255.255.0 172.20.0.30 track 2
ip route 10.70.1.0 255.255.2
4、55.0 172.20.0.30 10 //配置管理距離為10,使該路由作為備份路由,當(dāng)track的主路由失敗后,則選擇這個(gè)路由
ip route 10.70.2.0 255.255.255.0 172.20.0.18 10
ip sla 1 //配置SLA,根據(jù)icmp來(lái)判斷鏈路是否可靠
icmp-echo 172.20.0.18 source-ip 172.20.0.17
ip sla schedule 1 life forever start-time now //配置schedule,是SLA立即生效,有效期為永遠(yuǎn)
ip sla 2
icmp-ech
5、o 172.20.0.30 source-interface FastEthernet0/1
ip sla schedule 2 life forever start-time now
R2:
track 1 rtr 1 reachability
track 2 rtr 2 reachability
interface Loopback1
ip address 10.70.1.1 255.255.255.0
interface Loopback2
ip address 10.70.2.1 255.255.255.0
interface Fast
6、Ethernet0/0
ip address 172.20.0.18 255.255.255.252
interface FastEthernet0/1
ip address 172.20.0.30 255.255.255.252
ip route 10.80.1.0 255.255.255.0 172.20.0.17 track 1
ip route 10.80.2.0 255.255.255.0 172.20.0.29 track 2
ip route 10.80.1.0 255.255.255.0 172.20.0.29 10
ip route
7、10.80.2.0 255.255.255.0 172.20.0.17 10
ip sla 1
icmp-echo 172.20.0.17 source-ip 172.20.0.18
ip sla schedule 1 life forever start-time now
ip sla 2
icmp-echo 172.20.0.29 source-interface FastEthernet0/1
ip sla schedule 2 life forever start-time now
七、驗(yàn)證
R2#sho track brief
T
8、rack Object Parameter Value Last Change
1 rtr 1 reachability Up 00:00:37
2 rtr 2 reachability Up 01:10:57
R2#sho track
Track 1
Response Time Reporter 1 reachability
Reachability is Up
8 changes, last change 00:01:58
Latest operation return code: OK
Latest RTT (millisecs) 3
9、2
Tracked by:
STATIC-IP-ROUTING 0
Track 2
Response Time Reporter 2 reachability
Reachability is Up
8 changes, last change 01:12:18
Latest operation return code: OK
Latest RTT (millisecs) 20
Tracked by:
STATIC-IP-ROUTING 0
可以在R1在配置deny ACL(具體操作不在表述),測(cè)試結(jié)果如下:
專心---專注---專業(yè)