R0106-HP MSR Router Series High Availability Configuration Guide(V7)

84
Static routing-Track-NQA collaboration configuration example
Network requirements
As shown in Figure 24:
Router A is the default gateway of the hosts in subnet 20.1.1.0/24.
Router D is the default gateway of the hosts in subnet 30.1.1.0/24.
Hosts in the two subnets communicate with each other through static routes.
To ensure network availability, configure route backup and static routing-Track-NQA collaboration on
Router A and Router D as follows:
On Router A, assign a higher priority to the static route to 30.1.1.0/24 with Router B as the next hop.
This route is the master route. The static route to 30.1.1.0/24 with Router C as the next hop acts as
the backup route. When the master route is unavailable, the backup route takes effect.
On Router D, assign a higher priority to the static route to 20.1.1.0/24 with Router B as the next hop.
This route is the master route. The static route to 20.1.1.0/24 with Router C as the next hop acts as
the backup route. When the master route is unavailable, the backup route takes effect.
Figure 24 Network diagram
Configuration procedure
1. Configure the IP address of each interface as shown in Figure 24. (Details not shown.)
2. Configure Router A:
# Configure a static route to 30.1.1.0/24 with the next hop 10.1.1.2 and the default priority 60,
and associate this static route with track entry 1.
<RouterA> system-view
[RouterA] ip route-static 30.1.1.0 24 10.1.1.2 track 1
# Configure a static route to 30.1.1.0/24 with the next hop 10.3.1.3 and the priority 80.
[RouterA] ip route-static 30.1.1.0 24 10.3.1.3 preference 80
# Configure a static route to 10.2.1.4 with the next hop 10.1.1.2.
[RouterA] ip route-static 10.2.1.4 24 10.1.1.2
# Create an NQA operation with the administrator admin and the operation tag test.