The bfd bind ldp-lsp command creates a bidirectional forwarding detection (BFD) session for detecting LDP LSPs.
The undo bfd command deletes a specified BFD session.
By default, no BFD session is created for detecting LDP LSPs.
bfd cfg-name bind ldp-lsp peer-ip ip-address nexthop ip-address [ interface interface-type interface-number ]
undo bfd cfg-name
Parameter | Description | Value |
---|---|---|
cfg-name | Specifies the name of a BFD session. | The value is a string of 1 to 15 case-insensitive characters, spaces not supported. When double 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. |
nexthopip-address | Specifies the next hop IP address of the detected LSP. | The value is in dotted decimal notation. |
interfaceinterface-type interface-number | Specifies the outbound interface that is bound to a
BFD session.
|
- |
Usage Scenario
A dynamic LSP is established using LDP on an MPLS network. It takes an interface a long period of time to detect a link fault. After a static BFD session is bound to the LDP LSP, the interface can quickly detect faults on LDP LSPs. This method applies to small networks.
Prerequisites
BFD has been enabled globally using the bfd command.
Precautions
When the IP address of the outbound interface of the detected LSP is lent or borrowed, an outbound interface must be specified.
When the LDP LSP is deleted but the LDP session exists, the BFD session is in Down state, but the configuration of the BFD session bound to the LDP session is not deleted.
When configuring static BFD for LDP LSP on a network deployed with LDP over TE, specify interface interface-type interface-number as the tunnel interface.
# Create a BFD session to detect the LDP LSP with the egress IP address being 10.2.1.1, the next hop IP address being 10.1.1.1, and the outbound interface being VLANIF100.
<HUAWEI> system-view [HUAWEI] bfd [HUAWEI-bfd] quit [HUAWEI] bfd 1to4 bind ldp-lsp peer-ip 10.2.1.1 nexthop 10.1.1.1 interface vlanif 100 [HUAWEI-bfd-lsp-session-1to4]