< Home

mpls ldp transport-address

Function

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

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

Format

mpls ldp transport-address { interface-type interface-number | 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

Ethernet interface view, Ethernet sub-interface view, Eth-Trunk interface view, Eth-Trunk sub-interface view, Tunnel interface view, Dialer interface view, VLANIF interface view, Virtual-Template interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before two LSRs establish an LDP session, the two LSRs need to establish a TCP connection to exchange label messages. Run the mpls ldp transport-address command to set the address (the LDP transport address) for the TCP connection.

The transport address is used to establish a TCP connection between the local node and its peer. The peer must have a reachable route to this transport address. The default transport address is the loopback interface address (an LSR ID). When the address of the loopback interface is a public network address, configure different transport addresses for LSRs so that LSRs can set up connections with 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, and 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.

  • If LDP sessions are to be established over multiple links connecting two LSRs, LDP-enabled interfaces of either LSR must use the default transport address or the same transport address. If interfaces on either of the LSRs are assigned different transport addresses, a single transport address can be used, and a single LDP session can be established.

  • When the LDP transport address changes, the session is not interrupted immediately. The session is interrupted after the Hello hold timer times out.

Prerequisites

MPLS and MPLS LDP have been enabled on the interface.

Configuration Impact

The configured transport address is used to initiate a TCP connection.

Precautions

Changing an LDP transport address interrupts an LDP session. Exercise caution when running the mpls ldp transport-address command.

Example

# Set the transport address for link Hello messages as the current interface address.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] mpls ldp transport-address interface
[sysname-GigabitEthernet0/0/0] quit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >