二、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上的接口,路由表會進行切換,如下:

五、探測回復后
若是探測IP回復了,nqa是不支持搶占的,需要先關閉nqa探測。
nqa test-instance helipay icmp
undo start //結束探測,路由才會基於優先級高低重新更新
start now //然后重新再啟用探測
若是探測IP回復了,nqa是不支持搶占的,需要先關閉nqa探測。
nqa test-instance helipay icmp
undo start //結束探測,路由才會基於優先級高低重新更新
start now //然后重新再啟用探測