The bfd bind link-bundle command creates a BFD for link-bundle session that detects Eth-Trunk faults and displays the BFD session view.
By default, no BFD for link-bundle session is created.
bfd session-name bind link-bundle peer-ip ip-address [ vpn-instance vpn-name ] interface { interface-name | interface-type interface-number } source-ip ip-address
bfd session-name bind link-bundle peer-ip ip-address [ vpn-instance vpn-name ] interface { interface-name | interface-type interface-number } source-ip ip-address unshared-mode
bfd session-name bind link-bundle compatible-mode peer-ip ip-address [ vpn-instance vpn-name ] interface { interface-name | interface-type interface-number } source-ip ip-address
bfd session-name bind link-bundle compatible-mode peer-ip ip-address [ vpn-instance vpn-name ] interface { interface-name | interface-type interface-number } source-ip ip-address unshared-mode
bfd session-name bind link-bundle peer-ipv6 ipv6-address [ vpn-instance vpn-name ] interface { interface-name | interface-type interface-number } source-ipv6 ipv6-address
bfd session-name bind link-bundle peer-ipv6 ipv6-address [ vpn-instance vpn-name ] interface { interface-name | interface-type interface-number } source-ipv6 ipv6-address unshared-mode
bfd session-name bind link-bundle compatible-mode peer-ipv6 ipv6-address [ vpn-instance vpn-name ] interface { interface-name | interface-type interface-number } source-ipv6 ipv6-address
bfd session-name bind link-bundle compatible-mode peer-ipv6 ipv6-address [ vpn-instance vpn-name ] interface { interface-name | interface-type interface-number } source-ipv6 ipv6-address unshared-mode
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 ip-address |
Specifies the peer IP address bound to the 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 type and number of a local Layer 3 interface bound to a BFD session. |
The interface type can be Layer 3 Eth-Trunk. |
source-ip ip-address |
Specifies the source IPv4 address carried in BFD packets. |
The value is in dotted decimal notation. Specifies the source IPv4 address carried in BFD packets. If the source IP address is not specified, the system searches for an outbound interface to the remote IP address in the local routing table. The IP address of this outbound interface is used as the source IP address of BFD packets sent by the local end. You do not need to set this parameter. When BFD and Unicast Reverse Path Forwarding (URPF) are used together, URPF checks the source IP address of received packets. You need to manually configure the source IP address of BFD packets. |
unshared-mode |
Specifies unshared-mode. If this parameter is not configured, the shared mode takes effect. |
- |
compatible-mode |
Indicates that BFD sessions support interworking with non-Huawei devices. By default, UDP port 6784 defined by relevant standards is used. If this parameter is specified, UDP port 3784 is used. |
- |
peer-ipv6 ipv6-address |
Specifies the peer IPv6 address bound to a BFD session. |
The value is in 32-digit hexadecimal notation. |
source-ipv6 ipv6-address |
Specifies the source IPv6 address carried in BFD packets. The address is the IPv6 address of a Layer 3 Eth-Trunk interface bound to a BFD session. |
The value is in 32-digit hexadecimal notation. |
Usage Scenario
Two routing devices are connected through a Layer 3 Eth-Trunk. An Eth-Trunk interface has multiple member interfaces. If a single-hop BFD session is bound to an Eth-Trunk interface to detect link faults, the session randomly selects a member interface. When the member interface fails (including link, interface, and board faults), the Eth-Trunk interface is considered faulty. However, the Eth-Trunk status may still be normal at that time. To resolve this issue, you can create a BFD for link-bundle session. A BFD sub-session is created for each Eth-Trunk member interface. The BFD for link-bundle session goes Down only when all BFD sub-sessions go Down.
A BFD for link-bundle session can work in shared or unshared mode.Prerequisites
BFD has been globally enabled using the bfd command in the system view before using the bfd bind link-bundle command.
Follow-up Procedure
After a BFD for link-bundle session is created, the system creates a sub-session for each member interface of an Eth-Trunk interface bound to the session to detect faults in each member link. Sub-session discriminators are determined through automatic negotiation, and main session discriminators are generated by the local system. That is, you do not need to configure local or remote discriminators for a BFD for link-bundle session.
You can perform any of the following operations as required:Precautions
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] interface Eth-Trunk 1 [*HUAWEI-Eth-Trunk1] ip address 10.10.20.1 24 [*HUAWEI-Eth-Trunk1] quit [*HUAWEI] bfd atob bind link-bundle peer-ip 10.10.20.2 interface eth-trunk 1 source-ip 10.10.20.1 [*HUAWEI-bfd-session-atob]
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] interface Eth-Trunk 1 [*HUAWEI-Eth-Trunk1] ipv6 enable [*HUAWEI-Eth-Trunk1] ipv6 address 2001:db8::1 64 [*HUAWEI-Eth-Trunk1] quit [*HUAWEI] bfd atob bind link-bundle peer-ipv6 2001:db8::2 interface eth-trunk 1 source-ipv6 2001:db8::1 [*HUAWEI-bfd-session-atob]