lsr-id (MPLS-LDP-VPN instance view)

Function

The lsr-id command sets the LSR ID of an LDP instance.

The undo lsr-id command deletes the LSR ID of an LDP instance.

By default, the LSR ID of an LDP instance is the same as the MPLS LSR ID configured using the mpls lsr-id command.

Format

lsr-id lsr-id

undo lsr-id

Parameters

Parameter Description Value
lsr-id

Specifies the LSR ID of an LDP instance.

The LSR ID is in dotted decimal notation.

Views

MPLS-LDP-VPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-ldp write

Usage Guidelines

Usage Scenario

By default, the LSR ID of an LDP instance is the same as the MPLS LSR ID configured using the mpls lsr-id command. On some networks, such as the BGP/MPLS VPNs, to which VPN instances apply, if the VPN address space and the public network address space overlap, configure LSR IDs for LDP instances to ensure the correct setup of TCP connections.

Prerequisites

MPLS and MPLS LDP have been globally enabled.

Implementation Procedure

When the lsr-id command is run, the system displays the following prompt:

Warning: All the related sessions will be deleted if the operation is performed! Continue? [Y/N]:

To confirm to run the command, enter y.

Precautions

An LDP session uses an LSR ID as a TCP transport address by default. If a nonexistent IP address is used as an LSR ID or a route is unreachable, a separate TCP transport address must be specified.

Note:

Changing or deleting the LSR ID of an LDP instance causes the reestablishment of all sessions in the LDP instance.

Example

# Set the LSR ID for an LDP instance.
<HUAWEI> system-view
[~HUAWEI] mpls
[~HUAWEI-mpls] quit
[~HUAWEI] mpls ldp vpn-instance vpn1
[~HUAWEI-mpls-ldp-vpn-instance-vpn1] lsr-id 2.2.2.3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >