Example for associating a static route with NQA on the AR router

Requirements: There are two egresses from the AR to the destination network segment. By default, services are transmitted through the primary egress. If the primary egress fails, services are switched to the backup egress. Because intermediate devices are deployed, the AR may not detect the fault of the intermediate link or device. In this case, services cannot be immediately switched to the backup link, causing service interruptions.

The procedure for associating NQA with static route on the AR router is as follows:
1. Configure an NQA test instance of ICMP.
2. Associate the static route with the NQA test instance.
Example: Associate the static route with the NQA test instance admin test. When the destination IP address is unreachable, the static route is ineffective.
[HUAWEI] nqa test-instance admin test //The test instance administrator is admin. Associate the static route with the NQA test instance and the test instance name is test. The two parameters can be user-defined.
[HUAWEI-nqa-admin-test] test-type icmp //Configure the NQA test instance of ICMP.
[HUAWEI-nqa-admin-test] destination-address ipv4 192.168.10.1 //Configure the destination address of the NQA test instance.
[HUAWEI-nqa-admin-test] frequency 10 //Configure the interval between two tests.
[HUAWEI-nqa-admin-test] probe-count 2 //Configure the probe count.
[HUAWEI-nqa-admin-test] start now //Start the NQA test instance immediately.
[HUAWEI-nqa-admin-test] q
[HUAWEI] ip route-static 10.0.0.0 255.255.0.0 192.168.0.254 track nqa admin test //sociate the static route with the NQA test instance.
[HUAWEI] ip route-static 10.0.0.0 255.255.0.0 192.168.1.254 preference 80 //Configure the static route of 10.0.0.0/16 and set the priority to 80.

Scroll to top