H3C NQA+track 实现 双链路主备切换
1.静态路由配置
ip route-static 0.0.0.0 0 1.1.1.2 track 1
主路由关联track 1
ip route-static 0.0.0.0 0 2.2.2.2 preference 100
备路由优先级修改为100
2.NQA配置
1).创建检测组
nqa entry admin test1
type icmp-echo
destination ip 8.8.8.8
next-hop ip 1.1.1.2
创建test1,类型ICMP,探测目标地址8.8.8.8,下一跳 1.1.1.2
probe count 10
probe timeout 500
frequency 3000
reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only
连续检测失败3次触发
quit
2).启动检测
nqa schedule admin test1 start-time now lifetime forever
3.NQA关联track1
track 1 nqa entry admin test1 reaction 1