Setup Guide
• By establishing a BFD session with a specied BGP neighbor (the neighbor {ip-address | peer-group-name} bfd
command)
BFD packets originating from a router are assigned to the highest priority egress queue to minimize transmission delays. Incoming BFD
control packets received from the BGP neighbor are assigned to the highest priority queue within the control plane policing (COPP)
framework to avoid BFD packets drops due to queue congestion.
BFD noties BGP of any failure conditions that it detects on the link. Recovery actions are initiated by BGP.
BFD for BGP is supported only on directly-connected BGP neighbors and in both BGP IPv4 and IPV6 networks. Up to 200 simultaneous
BFD sessions are supported.
As long as each BFD for BGP neighbor receives a BFD control packet within the congured BFD interval for failure detection, the BFD
session remains up and BGP maintains its adjacencies. If a BFD for BGP neighbor does not receive a control packet within the detection
interval, the router informs any clients of the BFD session (other routing protocols) about the failure. It then depends on the individual
routing protocols that uses the BGP link to determine the appropriate response to the failure condition. The typical response is to terminate
the peering session for the routing protocol and reconverge by bypassing the failed neighboring router. A log message is generated
whenever BFD detects a failure condition.
Prerequisites
Before conguring BFD for BGP, you must rst congure the following settings:
• Congure BGP on the routers that you want to interconnect, as described in Border Gateway Protocol IPv4 (BGPv4).
Establishing Sessions with BGP Neighbors for Default VRF
To establish sessions with either IPv6 or IPv4 BGP neighbors for the default VRF, follow these steps:
1 Enable BFD globally.
CONFIGURATION mode
bfd enable
2 Specify the AS number and enter ROUTER BGP conguration mode.
CONFIGURATION mode
router bgp as-number
3 Add a BGP neighbor or peer group in a remote AS.
CONFIG-ROUTERBGP mode
neighbor {ip-address | peer-group name} remote-as as-number
4 Enable the BGP neighbor.
CONFIG-ROUTERBGP mode
neighbor {ip-address | peer-group-name} no shutdown
5 Add a BGP neighbor or peer group in a remote AS.
CONFIG-ROUTERBGP mode
neighbor {ipv6-address | peer-group name} remote-as as-number
6 Enable the BGP neighbor.
CONFIG-ROUTERBGP mode
neighbor { ipv6-address | peer-group-name} no shutdown
7 To establish BFD sessions for IPv6 neighbors, specify the address family as IPv6.
158
Bidirectional Forwarding Detection (BFD)