一共5步配置:
第一步
#策略路由关联NQA track
policy-based-route WJ-TZWXH permit node 10
if-match acl 3002
apply next-hop 10.93.246.1** direct track 1
第二步
# 设置NQA监听配置
nqa entry office 1
type icmp-echo
destination ip 10.93.246.1**
frequency 500
history-record enable
history-record number 10
probe count 5
probe timeout 200
reaction 1 checked-element probe-fail threshold-type consecutive 5 action-type trigger-only
source ip 10.93.246.190
第三步
# 启动NQA
nqa schedule office 1 start-time now lifetime forever
第四步
# 设置track 和naq联动
track 1 nqa entry office 1 reaction 1
第五步
#设置静态路由
ip route-static 0.0.0.0 0 10.93.246.1** track 1
ip route-static 0.0.0.0 0 10.93.249.29 preference 200