17
BFD for static routes configuration example (indirect next hop)
Network requirements
In Figure 4, Switch A has a route to interface Loopback 1 (2.2.2.9/32) on Switch B, with the output
interface VLAN-interface 10. Switch B has a route to interface Loopback 1 (1.1.1.9/32) on Switch A, with
the output interface VLAN-interface 12. Switch D has a route to 1.1.1.9/32, with the output interface
VLAN-interface 10, and a route to 2.2.2.9/32, with the output interface VLAN-interface 12.
Configure a static route to subnet 120.1.1.0/24 on Switch A, and configure a static route to subnet
121.1.1.0 / 24 o n Sw i t c h B. E n a b l e B F D fo r b o t h r o u t e s . C o n fi g u re a s t a t i c ro u t e t o s u b n e t 12 0 .1.1. 0 / 24 a n d
a static route to subnet 121.1.1.0/24 on both Switch C and Switch D. When the link between Switch A and
Switch B through Switch D fails, BFD can detect the failure immediately and inform Switch A and Switch
B to communicate through Switch C.
Figure 4 Network diagram
Device Interface IP address
Device
Interface
IP address
Switch A Vlan-int10 12.1.1.1/24
Switch B
Vlan-int12 11.1.1.1/24
Vlan-int11 10.1.1.102/24 Vlan-int13 13.1.1.1/24
Loop1 1.1.1.9/32
Loop1
2.2.2.9/32
Switch C Vlan-int11 10.1.1.100/24
Switch D
Vlan-int10 12.1.1.2/24
Vlan-int13 13.1.1.2/24 Vlan-int12 11.1.1.2/24
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure static routes and BFD:
# Configure static routes on Switch A and enable BFD control mode for the static route that
traverses Switch D.
<SwitchA> system-view
[SwitchA] bfd multi-hop min-transmit-interval 500
[SwitchA] bfd multi-hop min-receive-interval 500
[SwitchA] bfd multi-hop detect-multiplier 9
[SwitchA] ip route-static 120.1.1.0 24 2.2.2.9 bfd control-packet bfd-source 1.1.1.9
[SwitchA] ip route-static 120.1.1.0 24 vlan-interface 11 10.1.1.100 preference 65
[SwitchA] quit
# Configure static routes on Switch B and enable BFD control mode for the static route that
traverses Switch D.
<SwitchB> system-view