bfd bind ldp-lsp

Function

The bfd bind ldp-lsp command creates a bidirectional forwarding detection (BFD) session for detecting faults in an LDP LSP.

By default, no BFD session is created to detect faults in an LDP LSP.

Format

bfd session-name bind ldp-lsp peer-ip ip-address nexthop ip-address [ interface { interface-name | interface-type interface-number } ]

Parameters

Parameter Description Value
session-name

Specifies the BFD configuration name.

The value is a string of 1 to 64 characters. It cannot contain spaces. However, the character string can contain spaces if it is enclosed with quotation marks.

  • When configuring a BFD session name, ensure that the uppercase and lowercase letters in the name are the same as those entered by the user.
  • The system has been enabled to check whether the BFD session name is the same as an existing one, regardless of whether the BFD session name is case-insensitive. For example, ABC and abc are considered as the same BFD session name. If ABC has been configured, the BFD session view of ABC is directly displayed when abc is configured.
peer-ip ip-address

Specifies the LSR ID of the egress on a dynamic LSP to which a BFD session is bound.

The value is in dotted decimal notation.

nexthop ip-address

Specifies the next-hop IP address.

The value is in dotted decimal notation.

interface interface-name

Specifies the name of the outbound interface bound to a BFD session.

-

interface-type

Specifies the type of the outbound interface bound to a BFD session.

-

interface-number

Specifies the number of the outbound interface bound to a BFD session.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bfd write

Usage Guidelines

Usage Scenario

After a BFD session is established for an LDP LSP, the BFD mechanism rapidly detects LDP LSP faults to provide E2E protection.

Precautions

  • The bfd bind ldp-lsp command can only be run on The ingress of an LSP.
  • If The IP address of The outbound interface on The monitored lsp is lent or borrowed, The outbound interface type and number must be specified.
  • If an ldp lsp is deleted but The ldp session for The lsp is not deleted, The bfd session bound to The ldp session goes Down but is not deleted.
  • After an ldp session is deleted, The system deletes configurations of The bfd session bound to The ldp session.
  • The undo bfd sessname-value command deletes a created BFD session.

Example

# Create a BFD session to detect faults in an LDP LSP with the egress IP address of 4.4.4.4, the next-hop IP address of 10.1.1.2, and the outbound interface of GE 0/1/0.
<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd 1to4 bind ldp-lsp peer-ip 4.4.4.4 nexthop 10.1.1.2 interface GigabitEthernet 0/1/0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >