Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual
Page 203
12-22
z
The static route with Switch C as the next hop acts as the backup route.
z
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, and Switch A forwards packets to 30.1.1.0/24 through Switch
C and Switch B.
Similarly, Switch 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 Switch B, with the next hop being Switch A and Switch C respectively. These two
static routes back up each other, where:
z
The static route with Switch A as the next hop has a higher priority, and is the master route. If this
route is available, Switch B forwards packets to 20.1.1.0/24 through Switch A.
z
The static route with Switch C as the next hop acts as the backup route.
z
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, and Switch B forwards packets to 20.1.1.0/24 through Switch
C and Switch A.
Figure 12-6 Network diagram for static routing-track-BFD collaboration configuration
Configuration procedure
1) Create VLANs, and assign corresponding ports to the VLANs, and configure the IP address of
each VLAN interface as shown in
. The configuration procedure is omitted.
2) Configure Switch 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.
[SwitchA] 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.
[SwitchA] ip route-static 30.1.1.0 24 10.3.1.3 preference 80
# Configure the source address of BFD echo packets as 10.10.10.10.
[SwitchA] bfd echo-source-ip 10.10.10.10
# Configure track entry 1, and associate it with the BFD session. Check whether Switch A can be
interoperated with the next hop of static route: Switch B.
[SwitchA] track 1 bfd echo interface vlan-interface 2 remote ip 10.2.1.2 local ip 10.2.1.1
3) Configure Switch B