ip sla详解和实验

发布时间:2020-06-10 00:30:20 作者:超爱丝雨
来源:网络 阅读:19757

IP SLA是 Internet Protocol Service-Level Agreement的缩写,意思是互联网协议服务等级协议。


IP SLA主要有以下三种应用场合:

1.浮动静态路由下一跳检测。

2.HSRP出接口检测。

3.PBR策略路由下一跳检测。


简单来说就是利用以下各种途径测试可靠性,下文主要以icmp ping测试来说明

ip sla详解和实验


实验拓扑图

ip sla详解和实验

拓扑说明:R1 fa0/0接口192.168.0.0/24s1/0接口12.1.1.0/24s1/1接口13.1.1.0/24,最后一位为路由器编号,后续不再说明;R2 s1/0接口12.1.1.0/24s1/1接口24.1.1.0/24R3 s1/1接口13.1.1.0/24s1/0接口34.1.1.0/24R4 s1/1接口24.1.1.0/24s1/0接口34.1.1.0/24fa0/0接口192.168.1.0/24R1 R2 R3 R4ospf路由协议。


(config)#ip sla monitor 124

创建SLA条目

 

(config-sla-monitor)#type echo protocolipicmpecho 24.1.1.4 source-interface s1/0

设置检测类型为icmp ping,测试到24.1.1.4的连通性,走s1/0源接口

 

(config-sla-monitor-echo)#frequency 5

设置频率为5秒一个包

(config-sla-monitor-echo)#threshold 2

设置阀值为2

(config-sla-monitor-echo)#timeout 1000

单位为ms,超时时间为1s


(config)#ip sla monitor schedule 124 start-timenow life forever

设置sla 立刻生效,有效期无限(默认3600s

 

(config)#track 124 rtr 124 reachability

设置track条目和lsa条目关联,track可达性

 

(config)#ip route 0.0.0.0 0.0.0.0 12.1.1.210 track 124

设置路由ad值为10,使用track条目124监测


附上R1的相关配置:

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


实验结果:

可用show trackshow ip sla monitor configuration验证实验结果,192.168.1.0192.168.2.0默认走R1-R2-R4,当R2接口S1/1或者R4接口S1/1状态为down状态,会走另外一条路R1-R3-R4


推荐阅读:
  1. Router OS PPPOE和固定IP的上网配置方法是什么
  2. Cisco IP SLA和EEM:数据中心多出口优化设计方案

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

track ip sla la

上一篇:mysql 数据库密码修改

下一篇:PHPCMS v9文件管理模块

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》