Enable BFD Sessions for a BGP Neighbor in a Non-default VRF

You can configure the intervals that a device waits to send (transmit) or receive control packets from Bidirectional Forwarding Detection (BFD) peers. You can also configure the interval after which routes are withdrawn when a BFD session is down.

Procedure

  1. Access global configuration mode.
    device# configure terminal
  2. Access BGP configuration mode.
    device(config)# router bgp
  3. Access BGP address-family IPv4 unicast VRF configuration mode.
    device(config-bgp-router)# address-family ipv4 unicast vrf green
  4. To enable BFD sessions for a specified neighbor:
    device(config-bgp-ipv4u-vrf)# neighbor 10.10.1.1 bfd
  5. To specify the transmit time, the receive time, and the number of consecutive control packets that must be missed before the connection to a peer is considered non-operational:
    device(config-bgp-ipv4u-vrf)# neighbor 10.10.1.1 bfd interval 120 min-rx 140 multiplier 10
    For neighbor 10.10.1.1, this example specifies a transmit interval of 120 ms, the min-rx keyword followed by a receive interval of 140 ms, and the multiplier value of 10, which indicates that 10 consecutive packets must be missed before the connection to the peer is considered non-operational.
  6. To specify the interval (in seconds) after which BGP routes are withdrawn after a BFD session is declared down:
    device(config-bgp-ipv4u-vrf)# neighbor 10.10.1.1 bfd holdover-interval 12
    For neighbor 10.10.1.1, this example specifies a holdover interval of 12 seconds.