The bfd bind peer-ip track-interface command creates the binding between a BFD session and a peer IP address and displays the BFD session view.
By default, no binding between a BFD session and a peer IP address is created.
bfd session-name bind peer-ip peer-ip [ vpn-instance vpn-name ] [ source-ip source-ip ] track-interface interface { interface-name | interface-type interface-number }
bfd session-name bind peer-ip peer-ip [ vpn-instance vpn-name ] [ source-ip source-ip ] track-interface controller { interface-name | interface-type interface-number }
Parameter | Description | Value |
---|---|---|
session-name |
Specifies the name of a BFD session. |
The value is a string of 1 to 64 case-insensitive characters, spaces not supported. |
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. |
source-ip source-ip |
Specifies the source IP address in a BFD packet. If no source IP address is specified, a device uses a source IP address in either of the following modes before sending BFD packets:
This parameter is manually configured only when BFD works with Unicast Reverse Path Forwarding (URPF). This is because URPF checks the source IP address in received packets. For URPF configuration details, see the chapter "URPF Configuration" in VRP Router Configuration Guide - Security. |
The value is in dotted decimal notation. |
track-interface |
Specifies the interface traced by the BFD session. |
- |
interface interface-type interface-number |
Specifies the type and number of the interface monitored by a BFD session. |
- |
controller |
Specify controller. |
- |
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.
Follow-up Procedure
After the binding is created, you must perform the following operations to create the BFD session:
Precautions
If the source IP address is configured for the interface whose physical status is to be monitored by BFD, BFD packets are correctly forwarded after URPF has been enabled. The source-ip parameter must be configured correctly because the system checks only the validity of the source IP address. A multicast or broadcast address is an invalid source IP address.
The bfd bind peer-ip command must be run on both ends of a link because BFD detects faults in a bidirectional link. If the IP address of the outbound interface is changed after a BFD session has been created, either of the following situations occurs:<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] bfd atob bind peer-ip 1.1.1.2 track-interface interface GigabitEthernet 0/1/28 [*HUAWEI-bfd-session-atob]
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] bfd session bind peer-ip 10.10.20.2 [*HUAWEI-bfd-session-session]