您好,登錄后才能下訂單哦!
IP SLA是 Internet Protocol Service-Level Agreement的縮寫,意思是互聯(lián)網(wǎng)協(xié)議服務(wù)等級協(xié)議。
IP SLA主要有以下三種應(yīng)用場合:
1.浮動靜態(tài)路由下一跳檢測。
2.HSRP出接口檢測。
3.PBR策略路由下一跳檢測。
簡單來說就是利用以下各種途徑測試可靠性,下文主要以icmp ping測試來說明
實驗拓?fù)鋱D
拓?fù)湔f明:R1 fa0/0接口192.168.0.0/24,s1/0接口12.1.1.0/24,s1/1接口13.1.1.0/24,最后一位為路由器編號,后續(xù)不再說明;R2 s1/0接口12.1.1.0/24,s1/1接口24.1.1.0/24;R3 s1/1接口13.1.1.0/24,s1/0接口34.1.1.0/24;R4 s1/1接口24.1.1.0/24,s1/0接口34.1.1.0/24,fa0/0接口192.168.1.0/24。R1 R2 R3 R4起ospf路由協(xié)議。
(config)#ip sla monitor 124
創(chuàng)建SLA條目
(config-sla-monitor)#type echo protocolipicmpecho 24.1.1.4 source-interface s1/0
設(shè)置檢測類型為icmp ping,測試到24.1.1.4的連通性,走s1/0源接口
(config-sla-monitor-echo)#frequency 5
設(shè)置頻率為5秒一個包
(config-sla-monitor-echo)#threshold 2
設(shè)置閥值為2次
(config-sla-monitor-echo)#timeout 1000
單位為ms,超時時間為1s
(config)#ip sla monitor schedule 124 start-timenow life forever
設(shè)置sla 立刻生效,有效期無限(默認(rèn)3600s)
(config)#track 124 rtr 124 reachability
設(shè)置track條目和lsa條目關(guān)聯(lián),track可達(dá)性
(config)#ip route 0.0.0.0 0.0.0.0 12.1.1.210 track 124
設(shè)置路由ad值為10,使用track條目124監(jiān)測
附上R1的相關(guān)配置:
ip sla monitor 124
typeecho protocol ipIcmpEcho 24.1.1.4 source-interface Serial1/0
timeout 1000
threshold 2
frequency 5
ip sla monitor schedule 124 start-time now
ip sla monitor 134
typeecho protocol ipIcmpEcho 34.1.1.4 source-interface Serial1/1
timeout 1000
threshold 2
frequency 5
ip sla monitor schedule 134 start-time now
track 124 rtr 124 reachability
track 134 rtr 134 reachability
ip route 0.0.0.0 0.0.0.0 12.1.1.2 2 track124
ip route 0.0.0.0 0.0.0.0 13.1.1.3 3 track134
實驗結(jié)果:
可用show track和show ip sla monitor configuration驗證實驗結(jié)果,192.168.1.0到192.168.2.0默認(rèn)走R1-R2-R4,當(dāng)R2接口S1/1或者R4接口S1/1狀態(tài)為down狀態(tài),會走另外一條路R1-R3-R4。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。