configure bgp {neighbor [all | remoteaddr ]} {bfd [on | off]}
Note
The BFD setting can be applied on a per peer basis, the ability to set BFD on a peer-group or address-family basis is not currently supported. The BGP peer must be in the disabled admin state to modify its BFD setting. While BFD can be enabled on any BGP peering session, protection is only be provided for directly connected EBGP/IBGP peering sessions.Note
Configuring both BFD and graceful restart for BGP on the same switch is counterproductive. When an interface goes down, BFD detects this instantly, stops traffic forwarding and the BGP session goes down, whereas graceful restart forwards traffic despite the interface failure. This behavior might cause traffic loss. Therefore we do not recommend configuring both BFD and graceful restart on the same switch.