美文网首页
华为交换机S5720配置nqa+静态路由切换

华为交换机S5720配置nqa+静态路由切换

作者: 玩玩啫 | 来源:发表于2018-01-18 17:18 被阅读0次

一、实验拓扑


image.png

二、SW2配置
nqa test-instance helipay icmp
test-type icmp
destination-address ipv4 2.2.2.10 //探测的目标地址
frequency 10 //检测周期10秒
interval seconds 3 //周期内发的三次包时间间隔,该数值乘于3,不能超过周期设置值
start now

//静态路由关联内容
ip route-static 0.0.0.0 0.0.0.0 Vlanif100 1.1.1.2 track nqa helipay icmp //必须带出接口
ip route-static 0.0.0.0 0.0.0.0 1.1.1.3 preference 100

三、状态查看
dis nqa results //产看探测结果
“Lost packet ratio: 0 %”,这说明链路状态完好。
“Lost packet ratio: 100%”,这说明链路状态发生故障
dis nqa history //产看探测包的记录情况

四、测试情况
关闭SW6上的接口,路由表会进行切换,如下:


image.png

五、探测回复后
若是探测IP回复了,nqa是不支持抢占的,需要先关闭nqa探测。
nqa test-instance helipay icmp
undo start //结束探测,路由才会基于优先级高低重新更新
start now //然后重新再启用探测

相关文章

网友评论

      本文标题:华为交换机S5720配置nqa+静态路由切换

      本文链接:https://www.haomeiwen.com/subject/srbwoxtx.html