H3C 6608路由器version 7.1.054 EAA不支持Track,
计划是通过EAA去获取Track(track下联设备的一个IP,通过nqa去探测是否可达)的结果,
若可达,即track结果是positive,就进行相应端口的undo shutdown操作
若不可达,即track结果是negative,就进行相应端口的shutdown操作
当前路由器版本不支持Rtm 下使用event track。能否使用其他办法去解决?
(0)
最佳答案
参考配置:
nqa entry admin test1
type icmp-echo
destination ip 1.1.1.2
frequency 5000
history-record enable
probe count 10
probe timeout 500
reaction 1 checked-element probe-fail threshold-type consecutive 5 action-type none
nqa schedule admin test1 start-time now lifetime forever
rtm cli-policy 1
event syslog priority 6 msg probe-fail occurs 1 period 1
action 0 cli system-view
action 1 cli int loopback 0
action 2 cli shut
user-role network-admin
commit
rtm cli-policy 2
event syslog priority 6 msg probe-pass occurs 1 period 1
action 0 cli system-view
action 1 cli int loopback 0
action 2 cli undo shut
user-role network-admin
commit
[RTA]%May 16 15:40:19:823 2022 RTA NQA/6/NQA_ENTRY_PROBE_RESULT: Reacti on entry 1 of NQA entry admin-name admin operation-tag test1: probe-fai l.
%May 16 15:40:19:838 2022 RTA RTM/6/RTM_POLICY: CLI policy 1 is running successfully.
[RTA]dis cu int
#
interface LoopBack0
shutdown
ip address 10.1.1.1 255.255.255.255
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 1.1.1.1 255.255.255.252
#
interface GigabitEthernet0/1
port link-mode route
combo enable copper
#
[RTA]
[RTA]
[RTA]%May 16 15:40:31:824 2022 RTA NQA/6/NQA_ENTRY_PROBE_RESULT: Reacti on entry 1 of NQA entry admin-name admin operation-tag test1: probe-pas s.
%May 16 15:40:31:839 2022 RTA RTM/6/RTM_POLICY: CLI policy 2 is running successfully.
[RTA]dis cu int
#
interface LoopBack0
ip address 10.1.1.1 255.255.255.255
#
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明