The bfd bind peer-ip default-ip command creates a BFD binding for detecting the physical status of a link.
The undo bfd session-name command deletes a specified BFD session and the created BFD binding.
By default, no BFD binding for monitoring physical status of a link is configured.
bfd session-name bind peer-ip default-ip interface interface-type interface-number [ source-ip ip-address ] [ auto ]
undo bfd session-name
Parameter |
Description |
Value |
---|---|---|
session-name |
Specifies the session name of BFD. |
The value is a string of 1 to 15 characters without spaces. NOTE:
When quotation marks are used around the string, spaces are allowed in the string. |
peer-ip default-ip |
Indicates the default multicast IP address that is bound to a BFD session. |
By default, BFD uses the multicast IP address 224.0.0.184. You can set the multicast IP address by running the default-ip-address command. |
interface interface-type interface-number |
Specifies the type and number of the interface bound to a BFD session.
|
- |
source-ip ip-address |
Indicates the source IP address carried in BFD packets. If the source IP address is not specified, the system searches the local routing table for an outbound interface from which the peer IP address can be reached. The IP address of this outbound interface is used as the source IP address of BFD packets sent by the local end. Generally, this parameter is not required. When BFD is used with the Unicast Reverse Path Forwarding (URPF) function, you must manually configure the source IP address in BFD packets because the URPF function checks the source IP address in received packets. NOTE:
For details about URPF, see URPF Configuration in the NetEngine AR600, AR6100, AR6200, and AR6300 Configuration Guide - Security Configuration. |
- |
auto |
Enables automatic negotiation of local and remote discriminators. |
- |
Usage Scenario
If source-ip is specified, the URPF-enabled device does not incorrectly discard BFD packets. Ensure that the source IP address is correct. The system only checks whether the source IP address is valid (for example, it cannot be a multicast or broadcast address) without checking correctness.
Prerequisites
BFD has been enabled globally using the bfd command in the system view.
Precautions
If the IP address of an outbound interface is changed after a BFD session is configured, the source IP address of BFD packets is not updated.
# Configure a BFD session named test on GE 1/0/0.1 to which a default multicast address is bound, to detect the one-hop link on GE1/0/0.1.
<Huawei> system-view [Huawei] bfd [Huawei-bfd] quit [Huawei] bfd test bind peer-ip default-ip interface gigabitethernet 1/0/0.1 [Huawei-bfd-session-test]