The peer bfd enable command sets up a BGP session for a peer or peer group.
The undo peer bfd enable command disables BFD.
By default, no BGP session is set up for a peer or peer group.
peer { group-name | ipv4-address | ipv6-address } bfd enable [ single-hop-prefer ]
undo peer { group-name | ipv4-address | ipv6-address } bfd enable
| Parameter | Description | Value |
|---|---|---|
| group-name | Specifies the name of the peer group. | The name is a string of 1 to 47 characters without any space. It is case-sensitive. |
| ipv4-address | Specifies the IPv4 address of a peer. | The value is in dotted decimal notation. |
| ipv6-address | Specifies the IPv6 address of a peer. | It is in hexadecimal notation. |
| single-hop-prefer | Indicates that single-hop BFD sessions are preferentially established. single-hop-prefer takes effect only on IBGP peers. By default, single-hop-prefer is not specified, multi-hop sessions are established between direct IBGP peers (Huawei devices). To interconnect a Huawei device and a non-Huawei device that defaults the sessions between IBGP peers to single-hop, configure single-hop-prefer in the command. |
- |
Usage Scenario
BGP uses BFD to quickly detect faults in links between BGP peers. This accelerates network convergence. The peer bfd enable command is used to configure a device to establish a BFD session with its peer or peer group by using default detection parameter values.
Prerequisites
A BFD session can be established only when the corresponding BGP peer relationship is in the Established state.
Configuration Impact
After the peer bfd enable command is enabled, peers or peer groups can establish BFD sessions by using default parameter values. This allows fast link fault detection.
The BFD configuration of a peer takes precedence over that of the peer group to which the peer belongs. If BFD is not configured on a peer and the peer group to which the peer belongs is enabled with BFD, the peer inherits the BFD configurations from the peer group.
Precautions
Before enabling BFD on a BGP peer, enable BFD in the system view. If no BFD detection parameter is specified, a BFD session is established by using default parameter values.