22-38
NQA Collaboration Configuration Example
Network requirements
As shown in
Figure 23-13
, configure a static route to Switch C on Switch A, with Switch B as the next
hop. Associate the static route, track entry, and NQA test group to verify whether static route is active
in real time.
Figure 23-13
Network diagram for NQA collaboration configuration example
Vlan-int2
10.1.1.1/24
Vlan-int2
10.1.1.2/24
Vlan-int3
10.2.1.1/24
Switch C
Vlan-int3
10.2.1.2/24
Switch B
Switch A
Configuration procedure
1) Assign each interface an IP address. (omitted)
2) On Switch A, configure a unicast static route and associate the static route with a track entry.
# Configure a static route, whose destination address is 10.2.1.1, and associate the static route with
track entry 1.
<SwitchA> system-view
[SwitchA] ip route-static 10.1.1.2 24 10.2.1.1 track 1
3) On Switch A, create an NQA test group.
# Create an NQA test group with the administrator name being
admin
and operation tag being
test
.
[SwitchA] nqa entry admin test
# Configure the test type of the NQA test group as ICMP echo.
[SwitchA-nqa-admin-test] type icmp-echo
# Configure the destination IP address of the ICMP echo test operation as 10.2.1.1.
[SwitchA-nqa-admin-test-icmp-echo] destination ip 10.2.1.1
# Configure the interval between two consecutive tests as 100 milliseconds.
[SwitchA-nqa-admin-test-icmp-echo] frequency 100
# Create collaboration entry 1. If the number of consecutive probe failures reaches 5, collaboration
with other modules is triggered.
[SwitchA-nqa-admin-test-icmp-echo] reaction 1 checked-element probe-fail threshold-type
consecutive 5 action-type trigger-only
[SwitchA-nqa-admin-test-icmp-echo] quit
# Configure the test start time and test duration for the test group.
[SwitchA] nqa schedule admin test start-time now lifetime forever
4) On Switch A, create the Track entry.
# Create Track entry 1 to associate it with Reaction entry 1 of the NQA test group (admin-test).