R3303-HP HSR6800 Routers High Availability Configuration Guide

233
Static routing-Track-BFD collaboration configuration example
Network requirements
As shown in Figure 60, Router A, Router B, and Router C are connected to two segments 20.1.1.0/24 and
30.1.1.0/24. Configure static routes on these routers so that the two segments can communicate with
each other. Configure route backup to improve network reliability.
Router A is the default gateway of the hosts in segment 20.1.1.0/24. Two static routes to 30.1.1.0/24 exist
on Router A, with the next hop being Router B and Router C, respectively. These two static routes back up
each other, where:
The static route with Router B as the next hop has a higher priority, and is the master route. If this
route is available, Router A forwards pack e t s t o 3 0 .1.1. 0 / 24 t h r o u g h R o u t e r B .
The static route with Router C as the next hop acts as the backup route.
Configure static routing-track-BFD collaboration to determine whether the master route is available
in real time. If the master route is unavailable, BFD can quickly detect the route failure to make the
backup route take effect. Router A forwards packets to 30.1.1.0/24 through Router C and Router B.
Similarly, Router B is the default gateway of the hosts in segment 30.1.1.0/24. Two static routes to
20.1.1.0/24 exist on Router B, with the next hop being Router A and Router C, respectively. These two
static routes back up each other, where:
The static route with Router A as the next hop has a higher priority, and is the master route. If this
route is available, Router B forwards packets to 20.1.1.0/24 through Router A.
The static route with Router C as the next hop acts as the backup route.
Configure static routing-track-BFD collaboration to determine whether the master route is available
in real time. If the master route is unavailable, BFD can quickly detect the route failure to make the
backup route take effect. Router B forwards packets t o 2 0 .1.1. 0 / 24 t h r o u g h R o u t e r C a n d R o u t e r A .
Figure 60 Network diagram
Configuration procedure
1. Specify the IP address for each interface as shown in Figure 60. (Details not shown.)
2. Configure Router A:
# Configure a static route to 30.1.1.0/24, with the address of the next hop as 10.2.1.2 and the
default priority 60. This static route is associated with track entry 1.
<RouterA> system-view
[RouterA] ip route-static 30.1.1.0 24 10.2.1.2 track 1
# Configure a static route to 30.1.1.0/24, with the address of the next hop as 10.3.1.3 and the
priority 80.