The bfd bind peer-ip command creates the binding between a BFD session and a peer IP address and displays the BFD session view.
The bfd bind peer-ip source-ip auto command creates a static BFD session with automatically negotiated discriminators.
The undo bfd command deletes a specified BFD session and cancels the binding between a BFD session and a peer IP address.
By default, the binding between a BFD session and a peer address is not created.
bfd session-name bind peer-ip peer-ip [ vpn-instance vpn-name ] [ interface { interface-name | interface-type interface-number } ] [ source-ip source-ip ]
bfd session-name bind peer-ip peer-ip [ vpn-instance vpn-name ] [ interface { interface-name | interface-type interface-number } ] source-ip source-ip auto
Parameter | Description | Value |
---|---|---|
session-name |
Specifies the name of a BFD session. |
The value is a string of 1 to 64 characters, spaces not supported. When quotation marks are used around the string, spaces are allowed in the string.
|
peer-ip peer-ip |
Specifies the peer IP address bound to a BFD session. |
The value is in dotted decimal notation. |
vpn-instance vpn-name |
Specifies the name of a VPN instance bound to a BFD session. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
interface interface-type interface-number |
Specifies the local Layer 3 interface to which a BFD session is bound. |
- |
source-ip source-ip |
Specifies the source IPv4 address carried in BFD packets. If this parameter is not specified, the system searches the local routing table for the IP address of an outbound interface connected to the remote end and uses the IP address as the source IP address before sending BFD packets. This parameter usually does not need to be specified. |
The value is in dotted decimal notation. |
Usage Scenario
To rapidly detect link faults on a network, create a BFD session.
When creating the binding between a BFD session and a peer IP address:Prerequisites
BFD has been globally enabled using the bfd command in the system view.
Configuration Impact
You can run the bfd bind peer-ip command to create the binding between a static BFD session and a peer IP address.
Precautions
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ip address 10.1.1.1 24 [*HUAWEI-GigabitEthernet0/1/0] quit [*HUAWEI] bfd atob bind peer-ip 10.1.1.2 interface GigabitEthernet 0/1/0 source-ip 10.1.1.1 auto
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] bfd session bind peer-ip 10.10.20.2 [*HUAWEI-bfd-session-session]
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ip address 10.2.2.2 24 [*HUAWEI-GigabitEthernet0/1/0] quit [*HUAWEI] bfd atob bind peer-ip 10.2.2.1 interface GigabitEthernet 0/1/0 [*HUAWEI-bfd-session-atob]