nqa 可以和静态路由 策略路由联动,监测链路状态;为了避免服务器端认为自己这边是攻击行为,需要开启nqa server 但是icmp却不需要。
track 1 nqa entry admin test reaction 1
nqa entry admin test
type icmp-echo
destination ip 223.5.5.5
frequency 1000
reaction 1 checked-element probe-fail threshold-type consecutive 10 action-type trigger-only
source ip 1.1.1.1
nqa schedule admin test start-time now lifetime forever
ip route-static 0.0.0.0 0 183.249.76.1 preference 70
ip route-static 0.0.0.0 0 60.190.22.97 track 1
dis nqa result
NQA entry (admin admin, tag test) test results:
Send operation times: 1 Receive response times: 1
Min/Max/Average round trip time: 5/5/5
Square-Sum of round trip time: 25
Last succeeded probe time: 2023-04-03 11:45:35.9
Extended results:
Packet loss ratio: 0%
Failures due to timeout: 0
Failures due to internal error: 0
Failures due to other errors: 0
[ZLMC-FW-97.250]dis track 1
Track ID: 1
State: Positive
Duration: 0 days 0 hours 9 minutes 1 seconds
Tracked object type: NQA
Notification delay: Positive 0, Negative 0 (in seconds)
Tracked object:
NQA entry: admin test
Reaction: 1
Remote IP/URL: 223.5.5.5
Local IP: 1.1.1.1
Interface: –