mpls ldp local-lsr-id (Remote MPLS LDP peer view)

Function

The mpls ldp local-lsr-id command configures the primary IP address of a specified interface as a local LSR ID of the existing LDP session.

The undo mpls ldp local-lsr-id command restores the default primary IP address.

By default, the current LDP session uses the LSR ID of an LDP instance as a local LSR ID.

Format

mpls ldp local-lsr-id { interface-type interface-number | interface-name }

undo mpls ldp local-lsr-id

Parameters

Parameter Description Value
interface-type

Specifies the interface type.

-

interface-number

Specifies the interface number.

-

interface-name

Specifies.

-

Views

Remote MPLS LDP peer view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-ldp write

Usage Guidelines

Usage Scenario

LDP sessions that establish LDP LSPs to transmit VPN services share the LSR ID of an LDP instance. Sharing the LSR ID may cause the LDP LSPs to fail to isolate different VPN services. To address this problem, run the mpls ldp local-lsr-id command to specify an LSR ID for each LDP session.

NOTE:

  • If both the local and remote LDP sessions are to be established between an LSR pair, LSR IDs configured for the two sessions must be the same. Otherwise, only the LDP session that finds the adjacency first can be established.
  • If multiple links directly connect an LSR pair, the LSR ID configured on the interface of each link must be the same. Otherwise, the LDP session uses the LSR ID of the link that finds the adjacency first while other links with different LSR IDs cannot be bound to the LDP session. LDP LSP fails to be established on these links.
  • There must be a primary IP address on the specified interface. Otherwise, LDP will use 0.0.0.0 as Local LSR ID.

Prerequisites

A remote LDP peer has been configured using the mpls ldp remote-peer command before the mpls ldp local-lsr-id command is run in the remote MPLS LDP peer view.

Configuration Impact

Running the mpls ldp local-lsr-id command in a remote MPLS LDP peer view resets the remote LDP session.

Precautions

If the mpls ldp local-lsr-id command is run more than once, the last configuration overrides the previous one.

Example

# Use the primary IP address of GE 0/1/0 as a local LSR ID of a remote LDP session.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls ldp
[*HUAWEI-mpls-ldp] quit
[*HUAWEI] mpls ldp remote-peer rta
[*HUAWEI-mpls-ldp-remote-rta] mpls ldp local-lsr-id GigabitEthernet 0/1/0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >