The bfd bind mpls-te command configures BFD to detect faults in a TE tunnel or a primary or backup LSP bound to the TE tunnel.
The bfd bind mpls-te auto command configures a static BFD session with automatically negotiated discriminators to detect a TE tunnel or the primary or backup LSP bound to a TE tunnel.
By default, no BFD sessions are configured for TE tunnels.
bfd sessname-value bind mpls-te interface { tunnel-type tunnel-num | tunnel-name } te-lsp [ backup ]
bfd sessname-value bind mpls-te interface { tunnel-type tunnel-num | tunnel-name } te-lsp [ backup ] reverse-te lsr-id lsr-id tunnel-id tunnel-id auto
bfd sessname-value bind mpls-te interface { tunnel-type tunnel-num | tunnel-name } te-lsp [ backup ] one-arm-echo
bfd sessname-value bind mpls-te interface { tunnel-type tunnel-num | tunnel-name } one-arm-echo
Parameter | Description | Value |
---|---|---|
sessname-value |
Specifies the name of a BFD session. |
The value is a string of 1 to 64 case-insensitive characters, spaces not supported. |
interface tunnel-type tunnel-num |
Specifies the name of a tunnel interface to be bound to a BFD session. |
The tunnel-type value can only be tunnel. |
tunnel-name |
Specifies the name of a tunnel interface. |
The value is a string of 1 to 63 case-sensitive characters. It cannot contain spaces. |
te-lsp |
Configures BFD to detect the primary LSP bound to a tunnel. |
- |
backup |
Configures BFD to detect the backup LSP bound to a tunnel. |
- |
reverse-te |
Configures reverse TE tunnel information. |
- |
lsr-id lsr-id |
Specifies a reverse MPLS LSR ID. |
The value is an integer in the range 0 to 4294967295. |
tunnel-id tunnel-id |
Specifies a reverse tunnel ID. |
The value is an integer in the range 1 to 4294967295. |
auto |
Enables the auto-negotiation function for discriminators. |
- |
one-arm-echo |
Indicates a one-arm BFD echo session. |
- |
Usage Scenario
You can run the bfd bind mpls-te command to configure static BFD for a TE tunnel between devices. However, before running the command, you must configure static BFD for TE on both ends of the TE tunnel and manually plan session discriminators for both ends through the discriminator command.
To configure a static BFD session with automatically negotiated discriminators to detect a TE tunnel or the primary or backup LSP bound to a TE tunnel, run the bfd bind mpls-te auto command. After a reverse TE tunnel is specified, BFD sessions at both ends can be associated with each other through tunnel information. If the command is run, the BFD sessions at both ends can dynamically negotiate discriminators. Therefore, you do not need to manually plan or configure discriminators. BFD detects faults in a TE tunnel or a primary or backup LSP bound to the TE tunnel. Multiple LSPs may be bound to a TE tunnel. If BFD is configured to detect faults in a TE tunnel, a BFD session will go Down only if all LSPs bound to the TE tunnel fail. One-arm BFD echo is used when two devices are directly connected and only one of them supports BFD. A one-arm BFD echo session can be established on the device that supports BFD. After receiving a one-arm BFD echo session packet, the device that does not support BFD immediately loops back the packet, implementing quick link failure detection. When you create a one-arm BFD echo session, only the tunnel test is supported for SR-MPLS TE, and the LSP cannot be tested.Prerequisites
Precautions
If the primary or backup LSP bound to a tunnel and detected by BFD is Down, a BFD session can be established but cannot go Up.
If the TE tunnel detected by BFD is Down, a BFD session can be established but cannot go Up. You can run the undo bfd session-name command to delete a specified BFD session and its binding information.<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] mpls [*HUAWEI-mpls] mpls te [*HUAWEI-mpls] quit [*HUAWEI] interface tunnel 10 [*HUAWEI-Tunnel10] tunnel-protocol mpls te [*HUAWEI-Tunnel10] quit [*HUAWEI] bfd 1to4backup bind mpls-te interface Tunnel10 one-arm-echo
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] mpls [*HUAWEI-mpls] mpls te [*HUAWEI-mpls] quit [*HUAWEI] interface tunnel 10 [*HUAWEI-Tunnel10] tunnel-protocol mpls te [*HUAWEI-Tunnel10] quit [*HUAWEI] bfd 1to4backup bind mpls-te interface Tunnel10 te-lsp one-arm-echo
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] mpls [*HUAWEI-mpls] mpls te [*HUAWEI-mpls] quit [*HUAWEI] interface tunnel 10 [*HUAWEI-Tunnel10] tunnel-protocol mpls te [*HUAWEI-Tunnel10] quit [*HUAWEI] bfd 1to4backup bind mpls-te interface Tunnel10 te-lsp backup one-arm-echo [*HUAWEI-bfd-lsp-session-1to4backup]
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] mpls [*HUAWEI-mpls] mpls te [*HUAWEI-mpls] quit [*HUAWEI] interface tunnel 10 [*HUAWEI-Tunnel10] tunnel-protocol mpls te [*HUAWEI-Tunnel10] quit [*HUAWEI] bfd 1to4backup bind mpls-te interface Tunnel10 te-lsp backup [*HUAWEI-bfd-lsp-session-1to4backup]
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] mpls [*HUAWEI-mpls] mpls te [*HUAWEI-mpls] quit [*HUAWEI] interface tunnel 10 [*HUAWEI-Tunnel10] tunnel-protocol mpls te [*HUAWEI-Tunnel10] quit [*HUAWEI] bfd 1to4rsvp bind mpls-te interface Tunnel10 te-lsp [*HUAWEI-bfd-lsp-session-1to4rsvp]
<HUAWEI> system-view [~HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] mpls [*HUAWEI-mpls] mpls te [*HUAWEI-mpls] quit [*HUAWEI] interface tunnel 10 [*HUAWEI-Tunnel10] tunnel-protocol mpls te [*HUAWEI-Tunnel10] quit [*HUAWEI] bfd 1to4tunnel bind mpls-te interface Tunnel10 [*HUAWEI-bfd-lsp-session-1to4tunnel]
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls te [*HUAWEI-mpls] quit [*HUAWEI] interface Tunnel 10 [*HUAWEI-Tunnel10] ip address 2.2.2.2 24 [*HUAWEI-Tunnel10] tunnel-protocol mpls te [*HUAWEI-Tunnel10] mpls te tunnel-id 2 [*HUAWEI-Tunnel10] quit [*HUAWEI] bfd [*HUAWEI-bfd] quit [*HUAWEI] bfd lsptope2 bind mpls-te interface Tunnel10 te-lsp reverse-te lsr-id 1.1.1.1 tunnel-id 1 auto [*HUAWEI-bfd-lsp-session-lsptope2]