7-4
Displaying and Maintaining Track Object(s)
To do… Use the command… Remarks
Display information about the
specified Track object or all
Track objects
display track
{ track-entry-number | all }
Available in any view
Track Configuration Examples
Static Routing-Track-NQA Collaboration Configuration Example
Network requirements
z The next hop of the static route from Switch A to Switch C is Switch B.
z Configure Static Routing-Track-NQA collaboration on Switch A to implement real-time monitoring
of the validity of the static route to Switch C.
Figure 7-2 Network diagram for Static Routing-Track-NQA collaboration configuration
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) Configure the IP address of each interface as shown in Figure 7-2.
2) Configure a static route on Switch A and associate it with the Track object.
# Configure the address of the next hop of the static route to Switch C as 10.2.1.1, and configure the
static route to associate with Track object 1.
<SwitchA> system-view
[SwitchA] ip route-static 10.1.1.2 24 10.2.1.1 track 1
3) Configure an NQA test group on Switch A.
# Create an NQA test group with the administrator admin and the operation tag test.
[SwitchA] nqa entry admin test
# Configure the test type as ICMP-echo.
[SwitchA-nqa-admin-test] type icmp-echo
# Configure the destination address as 10.2.1.1
[SwitchA-nqa-admin-test-icmp-echo] destination ip 10.2.1.1
# Configure the test frequency as 100 ms.
[SwitchA-nqa-admin-test-icmp-echo] frequency 100