The bfd bind mpls-te command configures BFD to monitor TE tunnels, or the primary or backup LSP bound to a TE tunnel.
The undo bfd command deletes a specified BFD session.
By default, no TE tunnel applies BFD.
bfd cfg-name bind mpls-te interface tunnel interface-number [ te-lsp [ backup ] ]
undo bfd cfg-name
Parameter | Description | Value |
---|---|---|
cfg-name | Specifies the BFD configuration name. | 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. |
interface tunnel interface-number | Specifies the interface number of the TE tunnel bound to a BFD session. | - |
te-lsp [ backup ] | Indicates that BFD monitors the LSP bound to the TE
tunnel.
|
- |
Usage Scenario
You can run the bfd bind mpls-te command to configure BFD to monitor TE tunnels, or the primary or backup LSP bound to a TE tunnel.
Prerequisites
BFD has been enabled globally using the bfd command.
An MPLS TE tunnel interface has been configured.
Precautions
If BFD is configured to monitor the primary or backup LSP bound to a TE tunnel, a BFD session cannot be created if the LSP status is Down.
If the tunnel status is Down when BFD is configured to monitor a TE tunnel, the BFD session can still be created, but its status is Down.
Multiple LSPs can be bound to a TE tunnel. When BFD detects the tunnel, the BFD session will go Down only if all LSPs bound to the TE tunnel fail.
# Configure BFD to detect the primary LSP bound to the TE tunnel.
<HUAWEI> system-view [HUAWEI] bfd 1to4rsvp bind mpls-te interface Tunnel 1 te-lsp [HUAWEI-bfd-lsp-session-1to4rsvp]
# Configure BFD to detect the backup LSP bound to the TE tunnel.
<HUAWEI> system-view [HUAWEI] bfd 1to4backup bind mpls-te interface Tunnel 1 te-lsp backup [HUAWEI-bfd-lsp-session-1to4backup]