1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| 核心交换机Track配置
====监测配置1==== nqa test-instance user nqa1 //创建nqa1
test-type icmp //设置类型为icmp,也就是ping
destination-address ipv4 192.168.111.1 //设置目标IP,也就是运营商给的网关IP
frequency 15 // 设置NQA自动执行测试的时间间隔为15秒
interval seconds 5 //设置NQA发送报文的时间间隔为5秒
start now //立即开始
====监测配置2==== nqa test-instance user nqa2
test-type icmp
destination-address ipv4 192.168.222.2
frequency 15
interval seconds 5
start now
ip route-static 0.0.0.0 0.0.0.0 192.168.111.1 track nqa user nqa1
ip route-static 0.0.0.0 0.0.0.0 221.6.4.1 preference 90 track nqa user nqa2
|