Enable BFD Sessions for a BGP Neighbor

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. To enable BFD sessions for a specified neighbor:
    device(config-bgp-router)# neighbor 10.10.1.1 bfd
  4. (Multihop sessions only) 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-router)# 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.
    Note

    Note

    For single-hop sessions, run the bfd interval command at the interface level.
  5. To specify the interval (in seconds) after which BGP routes are withdrawn after a BFD session is declared down:
    device(config-bgp-router)# neighbor 10.10.1.1 bfd holdover-interval 12
    For neighbor 10.10.1.1, this example specifies a holdover interval of 12 seconds.