15
<RouterA> system-view
[RouterA] interface gigabitethernet 1/0
[RouterA-GigabitEthernet1/0] bfd min-transmit-interval 500
[RouterA-GigabitEthernet1/0] bfd min-receive-interval 500
[RouterA-GigabitEthernet1/0] bfd detect-multiplier 9
[RouterA-GigabitEthernet1/0] quit
[RouterA] ip route-static 120.1.1.0 24 gigabitethernet 1/0 12.1.1.2 bfd
control-packet
[RouterA] ip route-static 120.1.1.0 24 gigabitethernet 2/0 10.1.1.100 preference 65
[RouterA] quit
# Configure static routes on Router B and enable BFD control mode for the static route that
traverses the Layer 2 switch.
<RouterB> system-view
[RouterB] interface gigabitethernet 1/0
[RouterB-GigabitEthernet1/0] bfd min-transmit-interval 500
[RouterB-GigabitEthernet1/0] bfd min-receive-interval 500
[RouterB-GigabitEthernet1/0] bfd detect-multiplier 9
[RouterB-GigabitEthernet1/0] quit
[RouterB] ip route-static 121.1.1.0 24 gigabitethernet 1/0 12.1.1.1 bfd
control-packet
[RouterB] ip route-static 121.1.1.0 24 gigabitethernet 2/0 13.1.1.2 preference 65
[RouterB] quit
# Configure static routes on Router C.
<RouterC> system-view
[RouterC] ip route-static 120.1.1.0 24 13.1.1.1
[RouterC] ip route-static 121.1.1.0 24 10.1.1.102
Verifying the configuration
# Display BFD sessions on Router A.
<RouterA> display bfd session
Total Session Num: 1 Up Session Num: 1 Init Mode: Active
IPv4 Session Working Under Ctrl Mode:
LD/RD SourceAddr DestAddr State Holdtime Interface
4/7 12.1.1.1 12.1.1.2 Up 2000ms GE1/0
The output shows that the BFD session has been created.
# Display static routes on Router A.
<RouterA> display ip routing-table protocol static
Summary Count : 1
Static Routing table Status : <Active>
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface