63
Network requirements
• As shown in Figure 16, configure Host A to access Host B on the Internet. The default gateway of
H o s t A i s 10 .1.1.10 / 24 .
• Router A and Router B belong to VRRP group 1, which has the virtual IP address 10.1.1.10.
• When Router A works correctly, packets from Host A to Host B are forwarded through Router A.
When NQA detects that a fault is on the uplink of Router A, packets from Host A to Host B are
forwarded through Router B.
Figure 16 Network diagram
Configuration procedure
1. Configure the IP address of each interface as shown in Figure 16. (Details not shown.)
2. Configure an NQA test group on Router A:
# Create an NQA test group with the administrator name admin and the operation tag test.
<RouterA> system-view
[RouterA] nqa entry admin test
# Configure the test type as ICMP echo test.
[RouterA-nqa-admin-test] type icmp-echo
# Configure the destination address as 10.1.2.2.
[RouterA-nqa-admin-test-icmp-echo] destination ip 10.1.2.2
# Configure the interval between two consecutive tests as 100 milliseconds.
[RouterA-nqa-admin-test-icmp-echo] frequency 100
# Create reaction entry 1, specifying that five consecutive probe failures trigger the Track module.
[RouterA-nqa-admin-test-icmp-echo] reaction 1 checked-element probe-fail
threshold-type consecutive 5 action-type trigger-only
[RouterA-nqa-admin-test-icmp-echo] quit
# Start the NQA test.
[RouterA] nqa schedule admin test start-time now lifetime forever
3. Configure a track entry on Router A:
# Configure track entry 1, and associate it with reaction entry 1 of the NQA test group (with the
administrator admin, and the operation tag test).
[RouterA] track 1 nqa entry admin test reaction 1