《在路由器上配置Track-實(shí)現(xiàn)靜態(tài)路由器的冗余》由會(huì)員分享,可在線(xiàn)閱讀,更多相關(guān)《在路由器上配置Track-實(shí)現(xiàn)靜態(tài)路由器的冗余(7頁(yè)珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。
1、精品文檔
在路由器上配置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ù)測(cè)試網(wǎng)絡(luò)連通性
三、實(shí)驗(yàn)環(huán)境
模擬器:GNS3
路由器:unzip-c3725-adventerprisek9-mz.124-15.T5.bin
四、網(wǎng)絡(luò)拓?fù)?
R2
LoltlO.BLI lo2:l[.Stl.2.1 E f0/0 112.20.0.JM8 fQ/Q
172,2(1.().25-3
2、0 fd/i
五、環(huán)境要求
①.在路由器訪(fǎng)問(wèn)對(duì)端lo1接口默認(rèn)走上面的鏈路,當(dāng)上面的鏈 路出問(wèn)題時(shí),切換到下面的鏈路
②.在路由器訪(fǎng)問(wèn)對(duì)端lo2接口默認(rèn)走下面的鏈路,當(dāng)下面的鏈 路出問(wèn)題時(shí),切換到上面的鏈路
六、網(wǎng)絡(luò)配置
. 。
1歡迎下載
精品文檔
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.
3、80.2.1 255.255.255.
interface FastEthernet0/0
ip 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 17
4、2.20.0.30 track 2
ip route 10.70.1.0 255.255.255.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 // 配
5、置
schedule,是SLA立即生效,有效期為永遠(yuǎn)
ip sla 2
icmp-echo 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.
6、1 255.255.255.0
interface FastEthernet0/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
7、.29 10
ip route 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
Tr
8、ack 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) 32
Tracked by:
STA
9、TIC-IP-ROUTING 0
Track 2
Response Time Reporter 2 reachability
Reachability is Up
8 changes, last change 01:12:18
5 歡迎下載 。
精品文檔
Latest operation return code: OK
Latest RTT (millisecs) 20
Tracked by:
STATIC-IP-ROUTING 0
可以在R1在配置deny ACL測(cè)試(具體操作不在表述),測(cè)試結(jié)果
如下:
IIIIIIIIIIIIIHIIMIirilllll
10、lMllillllllllllHIIHIIHIIIIIIHIIIIIHI !!! !H!!!!!!!!!! I!!! I!H!!!!!!!!!!! I!! I!!!!!!!!!!!!!
IIUIIIIIPIIIIIIIMIIHIIHIIIIIHIII ■ ■■■!■■ nan ■ ■ ■ j ■ a ■ ■ ■ a ■ ■ ■ ■ a ■■:■■■■ r ■ a ■ u ■ n ■ b
%p 1 腓眥 13,例:!HIUC5-5UTE: 1 rtr 1 readlability gDwn!!!!!!!!!!!!!!!!!!!!!! ||||||>||||||| llllllli Hl il
11、iHlHlIliiiHIHlIIHIII ililliiFlIIHIHI
1 h ■ ti i ii ■ ii i ■ ■ j i ■ ■ i i ■ ■ i i ■ ii i i ■ n i ■ ■ it i nan !■■:!1 ■ ■ j i ■ ■ i ■ ■ 11 i 11 ■ a i u ■ n i n ■ u ■ ■ ■ ■ i ■ ■ i
I r h 4 I r h 4 I r s , r t 4 I I r w , i 4 I i i B 4 l r - I k S i I i- 4 i l r 4 Ii-^4rr4i 1■ ri 4 Ira-ilr4li 1,■18
7歡迎下載
歡迎您的下載,
資料僅供套考!
致力為企業(yè)和個(gè)人提供合同協(xié)議, 策劃案計(jì)劃書(shū),學(xué)習(xí)資料等等
打造全網(wǎng)一站式需求