bfd bind mpls-te interface

Function

The bfd bind mpls-te interface 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, BFD is disabled for tunnels.

Format

bfd sessname-value bind mpls-te interface { tunnel-type tunnel-num | tunnel-name }

bfd sessname-value bind mpls-te interface { tunnel-type tunnel-num | tunnel-name } reverse-te lsr-id lsr-id tunnel-id tunnel-id auto

Parameters

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 interface-type value can only be tunnel.

tunnel-name

Specifies the tunnel name.

The value is a string of 1 to 63 case-sensitive characters, spaces not supported.

reverse-te

Configures reverse TE tunnel information.

-

lsr-id lsr-id

Specifies a reverse MPLS LSR ID.

The value is in dotted decimal notation.

tunnel-id tunnel-id

Specifies a reverse tunnel ID.

The value is an integer ranging from 1 to 4294967295.

auto

Enables the auto-negotiation function for discriminators.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bfd write

Usage Guidelines

Usage Scenario

The bfd bind mpls-te interface 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.

Prerequisites

  • BFD has been enabled using the bfd command.
  • The tunnel interface to which the specified BFD session is to be bound has been configured.

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.

Example

# Create a BFD session to detect tunnel.
<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
# Create a BFD session to detect the primary LSP bound to a tunnel and specify reverse tunnel information.
<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 reverse-te lsr-id 1.1.1.1 tunnel-id 1 auto
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >