The bfd bind one-arm-echo command creates a one-arm BFD echo session.
By default, no one-arm BFD echo session is created.
bfd sessname-value bind peer-ip ip-address [ vpn-instance vpn-name ] interface { interface-name | interface-type interface-number } [ source-ip ip-address ] one-arm-echo
bfd sessname-value bind peer-ip ip-address [ vpn-instance vpn-name ] interface { interface-name | interface-type interface-number } [ source-ip ip-address ] one-arm-echo destination-ip ip-address
bfd sessname-value bind peer-ipv6 ipv6-address [ vpn-instance vpn-name ] interface { interface-name | interface-type interface-number } [ source-ipv6 ipv6-address ] one-arm-echo
bfd sessname-value bind peer-ipv6 ipv6-address [ vpn-instance vpn-name ] interface { interface-name | interface-type interface-number } [ source-ipv6 ipv6-address ] one-arm-echo destination-ipv6 ipv6-address
Parameter | Description | Value |
---|---|---|
sessname-value |
Specifies the name of a one-arm BFD echo 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 IPv4 address bound to a one-arm BFD echo session. |
The value is in dotted decimal notation. |
vpn-instance vpn-name |
Specifies the name of the VPN instance bound to a one-arm BFD echo 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 the local Layer 3 interface bound to a one-arm BFD echo session. |
- |
source-ip ip-address |
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. |
one-arm-echo |
Indicates a one-arm BFD echo session. |
- |
destination-ip ip-address |
Specifies the destination IPv4 address of BFD packets. |
The value is in dotted decimal notation. |
peer-ipv6 ipv6-address |
Specifies the peer IPv6 address bound to a BFD for IPv6 session. |
The value is a 32-bit hexadecimal number in the format of X:X:X:X:X:X:X:X. |
source-ipv6 ipv6-address |
Specifies the source IPv6 address carried in a BFD packet. If you do not specify the source IP address, the system automatically sets the source IP address according to the following rules:
Generally, you do not need to set this parameter. When BFD is used with Unicast Reverse Path Forwarding (URPF), you must manually configure the source IPv6 address in BFD packets because URPF checks the source IPv6 address in received packets. |
The value is a 32-bit hexadecimal number in the format of X:X:X:X:X:X:X:X. |
destination-ipv6 ipv6-address |
Specifies the destination IPv6 address of BFD packets. |
The value is a string of case-sensitive characters. It cannot contain spaces. |
Usage Scenario
Among two interconnected devices, one device supports BFD, and the other device does not support BFD. To quickly detect link faults, you can create a one-arm BFD Echo session on the device that supports BFD. After receiving a BFD Echo packet, the device that does not support BFD immediately loops back the packet for quick link fault detection.
When a one-arm BFD Echo session is created:Prerequisites
BFD has been globally enabled using the bfd command in the system view.
Precautions
The differences between a one-arm BFD echo session and a common BFD session are as follows:
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ip address 10.1.1.2 24 [*HUAWEI-GigabitEthernet0/1/0] quit [*HUAWEI] bfd test bind peer-ip 10.1.1.1 interface GigabitEthernet0/1/0 one-arm-echo