Enabling BFD Sessions for a BGP Neighbor

BFD sessions can be configured for BGP neighbors. The following task enables a BFD session for a BGP neighbor with the IP address 10.2.1.1 and configures the BFD session parameters.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router bgp command to enable BGP routing.
    device(config)# router bgp
  3. Enter the neighbor bfd command, specifying an IP address, to enable BFD sessions for the neighbor.
    device(config-bgp-router)# neighbor 10.2.1.1 bfd
  4. Enter the neighbor bfd command, specifying an IP address, with the min-tx, min-rx, and multiplier keywords, specifying the required intervals, to set the BFD session parameters for the BGP neighbor.
    device(config-bgp-router)# neighbor 10.2.1.1 bfd min-tx 290 min-rx 300 multiplier 3
  5. Enter the neighbor bfd command, specifying an IP address, with the holdover-interval keyword and specify a value to set the BFD holdover interval for the BGP neighbor.
    device(config-bgp-router)# neighbor 10.2.1.1 bfd holdover-interval 10

The following example enables a BFD session for a BGP neighbor with the IP address 10.2.1.1, configures the BFD session parameters, and sets the holdover interval.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# neighbor 10.2.1.1 bfd
device(config-bgp-router)# neighbor 10.2.1.1 bfd min-tx 290 min-rx 300 multiplier 3
device(config-bgp-router)# neighbor 10.2.1.1 bfd holdover-interval 10

The following example configures BFD for a BGP neighbor with the IPv6 address 2001:2018:8192::125 and sets the BFD session timer values. No holdover interval is configured, so the default of 0 will be applied.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# neighbor 2001:2018:8192::125 bfd
device(config-bgp-router)# neighbor 2001:2018:8192::125 bfd min-tx 290 min-rx 301 multiplier 3