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 ]
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-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 S2720, S5700, and S6700 V200R019C10 Configuration Guide - Security. |
- |
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.
Precautions
When the bfd bind peer-ip default-ip command is used to configure a BFD session, ring protocols cannot be configured on the interface bound to the BFD session. Otherwise, MAC address flapping may occur.
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.
After the bfd bind peer-ip default-ip command is executed, run the commit command to commit the configuration to make the configuration take effect.