346
BFD for IPv6 static routes configuration example (direct next
hop)
Network requirements
In
Figure 83
, configure an IPv6 static route to subnet 120::/64 on Router A, and configure an IPv6 static
route to subnet 121::/64 on Router B. Enable BFD for both routes. Configure an IPv6 static route to subnet
120::/64 and an IPv6 static route to subnet 121::/64 on Router C. When the link between Router A and
Router B through the Layer 2 switch fails, BFD can detect the failure immediately and inform Router A and
Router B to communicate through Router C.
Figure 83
Network diagram
Table 15
Interface and IP address assignment
Device Interface IPv6
address
Device
Interface
IPv6 address
Router A
GE1/0
12::1/64
Router B
GE2/0
13::1/64
Router A
GE2/0
10::102/64
Router C
GE1/0
10::100/64
Router B
GE1/0
12::2/64
Router C
GE2/0
13::2/64
Configuration procedure
1.
Configure IPv6 addresses for interfaces. (Details not shown.)
2.
Configure IPv6 static routes and BFD:
# Configure IPv6 static routes on Router A, and enable BFD control mode for the IPv6 static route
that traverses GigabitEthernet 1/0.
<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] ipv6 route-static 120:: 64 gigabitethernet 1/0 FE80::2E0:FCFF:FE58:123E bfd
control-packet
[RouterA] ipv6 route-static 120:: 64 10::100 preference 65
[RouterA] quit
# Configure IPv6 static routes on Router B, and enable BFD control mode for the IPv6 static route
that traverses the Layer 2 switch.
<RouterB> system-view