Enable BFD Sessions for a BGP Peer Group

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 BCG configuration mode.
    device(config)# router bgp
  3. Create a peer group.
    device(config-bgp-router)# neighbor pg1 peer-group 
  4. Enable BFD sessions for the peer group.
    device(config-bgp-router)# neighbor pg1 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-router)# neighbor pg1 bfd interval 200 min-rx 220 multiplier 25
    For peer group 1, this example specifies a transmit interval of 200 ms, the min-rx keyword followed by a receive interval of 220 ms, and the multiplier value of 25, which indicates that 25 consecutive packets must be missed before the connection to the peer is considered non-operational.
  6. To specify the interval after which BGP routes are withdrawn after a BFD session is declared down:
    device(config-bgp-router)# neighbor pg1 bfd holdover-interval 17
    For peer group 1, this example specifies a holdover interval of 17 seconds.