mpls ldp transport-address

Function

The mpls ldp transport-address command sets an LDP transport address.

The undo mpls ldp transport-address command restores the default configuration.

By default, the LDP transport address is the LSR ID of the local LSR.

Format

mpls ldp transport-address { interface-type interface-number | interface-name }

mpls ldp transport-address interface

undo mpls ldp transport-address

Parameters

Parameter Description Value
interface-type interface-number

Specifies the type and number of an interface. LDP uses the address of the interface as the TCP transport address.

-

interface

Indicates that LDP uses the IP address of the current interface as the TCP transport address.

-

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, GMPLS-UNI interface view, VLANIF interface view, XGE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-ldp write

Usage Guidelines

Usage Scenario

Before two LSRs establish an LDP session, the two LSRs need to establish a TCP connection to exchange label messages. In this case, run the mpls ldp transport-address command to set the address for the TCP connection, that is, the LDP transport address.

The transport address is used to set up the TCP connection with the peer. Therefore, the peer needs to have a route to the transport address. Generally, an LSR ID (address of a loopback interface) is used as the transport address. When the address of the loopback interface is a public network address, configure different transport addresses for LSRs to enable them to set up connections using private network addresses.

You can run the mpls ldp transport-address command in the interface view to set the transport address for a TCP connection. When there is more than one link between two LSRs, if the links are bound to VPN instances, the default transport address is the IP address of an interface rather than the LSR ID of an LSR.

NOTE:

  • When there are multiple links between two LSRs, if an LDP session needs to be set on the links, the interfaces at the same side of the links need to use the default transport address or be configured with the same transport address. Otherwise, the LDP session can be established on only one link.
  • When the LDP transport address is changed, the session is not interrupted immediately. Instead, the session is interrupted after the Hello hold timer times out.

Prerequisites

MPLS and MPLS LDP have been enabled on the interface.

Implementation Procedure

After the mpls ldp transport-address 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]:y

To confirm to run the command, enter y.

Configuration Impact

After the mpls ldp transport-address command is run, the transport address configured through the command is used by LDP to establish a TCP connection.

Precautions

For a local LDP multi-link session, the transport addresses of all links must be the same. Otherwise, the LDP session or LSP cannot be established.

For a coexistent local and remote LDP session, the transport addresses of all links and remote peers must be the same. If the transport addresses are different, the LDP session or LSP cannot be established.

Note:

After an LDP transport address is changed, an LDP session is interrupted. Therefore, exercise caution when changing the LDP transport address.

Example

# Configure the IP address of the current interface as the LDP transport address.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls ldp
[*HUAWEI-mpls-ldp] quit
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] mpls
[*HUAWEI-GigabitEthernet0/1/0] mpls ldp
[*HUAWEI-GigabitEthernet0/1/0] mpls ldp transport-address interface
Warning: All the related sessions will be deleted if the operation is performed! Continue? [Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >