静态路由结合track检测,当NQA生效时,但rtm提交的命令无法生效,导致路由无法切换
当我shutdown s6520_3的g1/0/2接口时间,track能探测到信息,但是路由无法切换
S6850_1配置:
#
track 1 nqa entry admin test reaction 1
nqa entry admin test
type icmp-echo
destination ip 100.0.0.2
frequency 5000
history-record enable
history-record number 10
next-hop ip 100.0.0.2
probe count 3
probe timeout 1000
reaction 1 checked-element probe-fail threshold-type consecutive 5 action-type trap-only
source ip 100.0.0.1
#
nqa schedule admin test start-time now lifetime forever
#
ip route-static 2.2.2.2 32 200.0.0.2 preference 80
ip route-static 2.2.2.2 32 100.0.0.2 track 1
#
rtm cli-policy track1_down
event track 1 state negative
action 0 cli system-view
action 1 cli int g1/0/2
action 2 cli shutdown
user-role network-admin
#
rtm cli-policy track1_up
event track 1 to 2 state positive
action 0 cli system-view
action 1 cli int g1/0/2
action 2 cli undo shutdown
user-role network-admin
#
(0)
最佳答案
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论