mpls lsr-id

Function

The mpls lsr-id command sets a label switching router (LSR) ID.

The undo mpls lsr-id command deletes an LSR ID.

By default, no LSR ID is set.

Format

mpls lsr-id lsr-id

undo mpls lsr-id

Parameters

Parameter Description Value
lsr-id Specifies the LSR ID of a device, which identifies a peer LSR. Expressed in dotted decimal notation

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An LSR ID uniquely identifies an LSR on an MPLS network. MPLS can be globally enabled only after an LSR ID is set for a device.

No default LSR ID is provided, and the LSR ID needs to be configured. As a network-wide unique 32-bit host address is assigned to a loopback interface, using this interface as an LSR ID is recommended.

Follow-up Procedure

Run the mpls command to globally enable MPLS.

Precautions

To change or deleted an existing LSR ID, run the undo mpls command in the system view first to delete all MPLS configurations.
NOTICE:
Running the undo mpls command deletes all MPLS configurations (including established LDP sessions and LSPs).

Example

# Set an LSR ID to 1.1.1.1.

<sysname> system-view
[sysname] mpls lsr-id 1.1.1.1
Related Topics
mpls (system view)

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.