The peer bfd enable command enables a device to establish a BFD session with its peer using default detection parameter values.
The undo peer bfd enable command cancels this function.
By default, a BGP device does not establish any BFD session with its peer.
Parameter | Description | Value |
---|---|---|
ipv6-address |
Specifies the IPv6 address of a peer. |
The value is in the X:X:X:X:X:X:X:X format. |
single-hop-prefer |
Preferentially creates a single-hop BFD session for BGP peers. |
- |
compatible |
Indicates the compatibility mode. If this keyword is specified, the TTL in packets sent by BFD is set to 255. |
- |
Usage Scenario
BGP uses BFD to quickly detect faults on links between BGP peers, speeding up network convergence. This command is used to configure a BFD session with default detection parameters for a peer or peer group.
If single-hop-prefer is specified in the command, single-hop BFD is preferentially used to monitor IP connectivity between BGP peers. That is, only one BFD session is created on a specified BGP interface. When a Huawei device is connected to a non-Huawei device, this parameter ensures that the local and peer ends use the same detection mode. The per-link one-arm-echo parameter can be used to enable one-arm BFD echo session detection for each link. This parameter is used to ensure that the local and peer devices use the same detection mode when the local device is connected to a non-Huawei device. After a peer is added to a peer group, the peer inherits the BFD configuration of the peer group, regardless of whether BFD is enabled on the peer. If a peer does not need to inherit the configuration of its peer group, run the peer bfd block command on the peer to prevent the peer from inheriting the BFD configuration of the peer group.Prerequisites
A BFD session can be established only when the corresponding BGP peer relationship is in the Established state.
Precautions
Before enabling BFD on a BGP peer, enable BFD in the system view. If no BFD detection parameter is specified, the BFD session uses the default values.
If the command is run more than once, the latest configuration overrides the previous one. Note: The peer bfd block command and the peer bfd enable command are mutually exclusive. After the peer bfd block command is run, the BFD session is automatically deleted.