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

2020年5月2日17:20:59 发表评论 886 次浏览

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"
!

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: