知易未来

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

知易未来 2020-5-2 1,306 5/2

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

- THE END -
Tag:

知易未来

3月07日16:37

最后修改:2022年3月7日
0

非特殊说明,本博所有文章均为博主原创。