Configuring BFD For OSPFv3

Prerequisites
  • OSPFv3 must be enabled.

  • ICMP must be disabled.

Procedure
  1. Enable BFD support with the command bfd.
  2. Enable BFD on all OSPF interfaces with the command bfd all-interfaces, or enable BFD on a specific interface with the command ipv6 ospfv3 bfd.
  3. For most deployments, the default values for the following features do not need to be changed. If your deployment requires different settings, change the default values with the indicated command:
    BFD setting Default value Command to change it
    Sets the BFD detection multiplier on an interface. 5 bfd detect-multiplier
    Sets the minimum time interval between received BFD echo packets. 500 milliseconds bfd min-echo-receive-interval
    Sets the minimum time interval between transmitted BFD control packets on an interface. 3000 milliseconds bfd min-transmit-interval

    Configuring the timers to be too aggressive (for example, detect-multiplier of 1) can sometimes lead to BFD session flaps depending upon traffic conditions.

  4. Review BFD configuration settings with the commands show bfd.

Examples

This example shows how to enable BFD on an all OSPFv3 interfaces.

switch# config
switch(config)# bfd
switch(config)# router ospfv3 1
switch(config-ospfv3-1)# area 1
switch(config-ospfv3-1)# router-id 1.1.1.1
switch(config-ospfv3-1)# bfd all-interfaces
switch(config-ospfv3-1)# exit
switch(config) router ospfv3 2
switch(config-ospfv3-2)# area 2
switch(config-ospfv3-2)# router-id 1.1.1.2
switch(config-ospfv3-2)# bfd all-interfaces
switch(config-ospfv3-2)# exit
switch(config)# interface 1/1/1
switch(config-if)# no shutdown
switch(config-if)# ipv6 address  100::1/64
switch(config-if)# ipv6 ospfv3 1 area 1
switch(config-if)# exit
switch(config)# interface 1/1/2
switch(config-if)# no shutdown
switch(config-if)# ipv6 address  100::2/64
switch(config-if)# ipv6 ospfv3 2 area 2
switch(config-if)# exit
switch(config)# exit
switch# show bfd

Admin status: enabled
Echo source IP: 100.100.100.1
Statistics:
Total number of control packets transmitted: 20
Total number of control packets received: 17
Total number of control packets dropped: 0

Session Interface VRF       Source IP               Destination IP           Echo     State        Application
------- --------- --------- ---------------         ---------------          -------- ------------ ------------
1       tunnel1   default   fe80::94f1:28a0:1ef:700 fe80::94f1:28a0:1ef:a100 enabled  up           ospfv3
2       tunnel1   default   fe80::94e2:37b1:1ef:111 fe80::94e2:37b1:1ef:555  enabled  up           ospfv3

This example shows how to enable BFD on a specific OSPFv3 interface.

switch# config
switch(config)# bfd
switch(config)# router ospfv3 1
switch(config-ospfv3-1)# area 1
switch(config-ospfv3-1)# router-id 1.1.1.1
switch(config-ospfv3-1)# exit
switch(config)# interface 1/1/1
switch(config-if)# no shutdown
switch(config-if)# ipv6 address  100::1/64
switch(config-if)# ipv6 ospfv3 1 area 1
switch(config-if)# ipv6 ospfv3 bfd
switch(config-if)# exit
switch(config)# exit
switch# show bfd interface 1/1/1

Admin status: enabled
Echo source IP: 100.100.100.1
Statistics:
Total number of control packets transmitted: 20
Total number of control packets received: 17
Total number of control packets dropped: 0

Session Interface VRF       Source IP               Destination IP           Echo     State        Application
------- --------- --------- ---------------         ---------------          -------- ------------ ------------
1       tunnel1   default   fe80::94f1:28a0:1ef:700 fe80::94f1:28a0:1ef:a100 enabled  up           ospfv3