NQA配置手顺
结构图
基本配置不做详细 NQA配置
nqa entry admin static1 --创建进程 type icmp-echo --以ICMP协议监测 destination ip 221.12.1.227--联通DNS frequency 10000
next-hop ********* 主线路上行口的下一跳
reaction 1 checked-element probe-fail threshold-type consecutive 1 action-type trigger-only route-option bypass-route
source ip ********* 主线路上行口 quit #
nqa entry admin static2 typeicmp-echo
destination ip 122.224.112.145 ---电信DNS frequency 10000
next-hop ********* 副线路上行口的下一跳
reaction 2 checked-element probe-fail threshold-type consecutive 2 action-type trigger-only route-option bypass-route
source ip ********* 副线路上行口 quit #
track 1 nqa entry admin static1 reaction 1
track 2 nqa entry admin static2 reaction 2 #
nqa schedule admin static1 start-time now lifetime forever nqa schedule admin static2 start-time now lifetime forever #
ip route-static 0.0.0.0 0.0.0.0 ********* track 1
ip route-static 0.0.0.0 0.0.0.0 ********* track 2 preference 90
设置成功之后,可以断其中一条线,以测试。