1. 个人技术记录首页
  2. 技术学习
  3. 网络技术

IP SLA线路检测与故障切换的实现

Cisco思科路由器通过ip sla功能实现线路检测,故障切换。
命令参考:
!
track 10 ip sla 10 reachability
delay down 5 up 10
!
!
ip sla auto discovery
ip sla 10
icmp-echo 112.15.117.1
frequency 10
ip sla schedule 10 life forever start-time now
access-list 101 permit ip any any
access-list 101 permit icmp any any
!
event manager applet track_1
event track 10 state down
action 1 cli command "enable"
action 2 cli command "conf t"
action 3 cli command "inte g0/1"
action 4 cli command "shut"
action 5 cli command "end"
event manager applet track_2
event track 10 state up
action 1 cli command "enable"
action 2 cli command "conf t"
action 3 cli command "inte g0/1"
action 4 cli command "no shut"
action 5 cli command "end"
!

原创文章,作者:admin,如若转载,请注明出处:https://www.cnyen.com/archives/41