Example for Configuring Dynamic BFD for IPv6 Static Routes
Networking Requirements
As shown in Figure 2-10, SwitchA and SwitchB connect to each other and have static routes configured between them. Customers require that a link fault between SwitchA and SwitchB be detected within milliseconds and SwitchA and SwitchB dynamically update their routing tables.
Configuration Roadmap
To meet the preceding requirement, configure dynamic BFD for IPv6 static routes. The configuration roadmap is as follows:
Configure dynamic BFD for IPv6 static routes so that link faults between SwitchA and SwitchB can be detected within milliseconds to speed up route convergence.
Procedure
- Configure IPv6 addresses for interfaces. The configuration details are not provided here.
- Configure static IPv6 routes.
# Configure a static route destined for FC00:0:0:2008::1/64 on SwitchA.
[~SwitchA] ipv6 route-static fc00:0:0:2008:: 64 fc00:0:0:2200::2
[*SwitchA] commit
# Configure a static route destined for FC00:0:0:2007::1/64 on SwitchB.
[~SwitchB] ipv6 route-static fc00:0:0:2007:: 64 fc00:0:0:2200::1
[*SwitchB] commit
- Configure dynamic BFD for IPv6 static routes.
# Bind the static route to a BFD session on SwitchA.
[~SwitchA] bfd
[*SwitchA-bfd] quit
[*SwitchA] ipv6 route-static bfd fc00:0:0:2200::2 local-address fc00:0:0:2200::1
[*SwitchA] ipv6 route-static fc00:0:0:2008:: 64 fc00:0:0:2200::2 bfd enable
[*SwitchA] commit
# Bind the static route to a BFD session on SwitchB.
[~SwitchB] bfd
[*SwitchB-bfd] quit
[*SwitchB] ipv6 route-static bfd fc00:0:0:2200::1 local-address fc00:0:0:2200::2
[*SwitchB] ipv6 route-static fc00:0:0:2007:: 64 fc00:0:0:2200::1 bfd enable
[*SwitchB] commit
- Verify the configuration.
# After the configurations are complete, run the display bfd session all verbose command on SwitchA or SwitchB. You can view that the BFD session is established and in Up state. The static route is bound to the BFD session.
Take the display information on SwitchA as an example. The command output shows that a BFD session is set up.
<SwitchA> display bfd session all verbose
(w): State in WTR (*): State is invalid Total UP/DOWN Session Number : 1/0 -------------------------------------------------------------------------------- Name : dyn_16385 (Multiple Hops) State : Up -------------------------------------------------------------------------------- Local Discriminator : 16385 Remote Discriminator : 16385 Session Detect Mode : Asynchronous Mode Without Echo Function BFD Bind Type : Peer IP Address Bind Session Type : Dynamic Bind Peer IP Address : FC00:0:0:2200::2 Bind Interface : - Bind Source IP Address : FC00:0:0:2200::1 FSM Board ID : 3 ToS-EXP : 6 Min Tx Interval (ms) : 1000 Min Rx Interval (ms) : 1000 Actual Tx Interval (ms): 1000 Actual Rx Interval (ms): 1000 WTR Interval (ms) : - Detect Interval (ms) : - Local Detect Multi : 3 Active Multi : - Destination Port : 4784 TTL : 253 Process PST : Disable Config PST : Disable Last Local Diagnostic : No Diagnostic Bind Application : STATICRTV6 Session Description : - --------------------------------------------------------------------------------
Configuration Files
Configuration file of SwitchA
#
sysname SwitchA
#
bfd
#
interface 10GE1/0/1
undo portswitch
ipv6 enable
ipv6 address FC00:0:0:2200::1/64
#
interface 10GE1/0/2
undo portswitch
ipv6 enable
ipv6 address FC00:0:0:2007::1/64
#
ipv6 route-static bfd FC00:0:0:2200::2 local-address FC00:0:0:2200::1
ipv6 route-static FC00:0:0:2008:: 64 FC00:0:0:2200::2 bfd enable
#
return
Configuration file of SwitchB
#
sysname SwitchB
#
bfd
#
interface 10GE1/0/1
undo portswitch
ipv6 enable
ipv6 address FC00:0:0:2200::2/64
#
interface 10GE1/0/2
undo portswitch
ipv6 enable
ipv6 address FC00:0:0:2008::1/64
#
ipv6 route-static bfd FC00:0:0:2200::1 local-address FC00:0:0:2200::2
ipv6 route-static FC00:0:0:2007:: 64 FC00:0:0:2200::1 bfd enable
#
return