< Home

lsr-id

Function

The lsr-id command sets the label switching router (LSR) ID of an LDP instance.

The undo lsr-id command restores the default LSR ID.

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. Expressed in dotted decimal notation

Views

MPLS-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An LSR ID identifies an LDP instance. To set an LSR ID for an LDP instance, run the lsr-id command. For example, on a MPLS L3VPN, if private IP addresses of a VPN instance overlap public IP addresses, configure another LSR ID for an LDP instance in the VPN instance so that a TCP connection can be established for an LDP session.

Prerequisites

MPLS has been enabled globally using the mpls (system view) command.

MPLS LDP has been enabled globally using the mpls ldp (system view) command.

Configuration Impact

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 continue the operation, enter y.

Deleting or Modifying the LSR ID of an LDP instance causes the reestablishment of all sessions in the LDP instance.

Example

# Set the LSR ID of an LDP instance.

<sysname> system-view
[sysname] mpls ldp
[sysname-mpls-ldp] lsr-id 2.2.2.3
  Warning: All the related sessions will be deleted if the operation is performed! Continue? (y/n)y
[sysname-mpls-ldp] quit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >