peer bfd (BGP-VPN instance view)

Function

The peer bfd command sets BFD detection parameters for a peer.

The undo peer bfd command restores default BFD detection parameter values.

By default, the interval at which BFD packets are sent is 10 milliseconds, the interval at which BFD packets are received is 10 milliseconds, the local detection time multiplier is 3.

Format

peer ipv4-address bfd { min-tx-interval min-tx-interval | min-rx-interval min-rx-interval | detect-multiplier multiplier } *

peer ipv6-address bfd { min-tx-interval min-tx-interval | min-rx-interval min-rx-interval | detect-multiplier multiplier } *

undo peer ipv4-address bfd { min-tx-interval | min-rx-interval | detect-multiplier } *

undo peer ipv6-address bfd { min-tx-interval | min-rx-interval | detect-multiplier } *

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a peer.

It is in dotted decimal notation.

min-tx-interval min-tx-interval

Specifies the interval at which BFD packets are sent.

The value is an integer ranging from 3 to 20000, in milliseconds. The default value is 10.

min-rx-interval min-rx-interval

Specifies the interval at which BFD packets are received.

The value is an integer ranging from 3 to 20000, in milliseconds. The default value is 10.

detect-multiplier multiplier

Specifies the local detection time multiplier.

The value is an integer ranging from 3 to 50. The default value is 3.

ipv6-address

Specify an IPv6 peer address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

BGP-VPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

BFD provides millisecond-level fault detection. It helps BGP to detect faults in neighboring devices or links more quickly, and instructs BGP to recalculate routes for correct packet forwarding. The peer bfd command can be used to set the values of BFD session parameters on a specified interface.

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 will inherit the BFD configurations of the peer group.

Prerequisites

A BFD session can be established only when the corresponding BGP session is in the Established state.

Configuration Impact

If the peer bfd command is run multiple times, the latest configuration overwrites the previous one. The BFD session uses the latest parameters as the detection parameters.

Assume that BFD is configured on a peer. If the peer bfd block command is not run on members of the peer group, the members will establish BFD sessions.

Precautions

If BFD parameters are set on a peer, a BFD session will be established by using the BFD parameters on the peer.

Example

# Configure BFD and set detection parameters on peer 192.168.1.1.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] vpn-instance vpn1
[*HUAWEI-bgp-instance-vpn1] peer 192.168.1.1 as-number 200
[*HUAWEI-bgp-instance-vpn1] peer 192.168.1.1 bfd min-tx-interval 100 min-rx-interval 100 detect-multiplier 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >