mpls ldp transport-address

Use mpls ldp transport-address to specify the LDP IPv4 transport address.

Use undo mpls ldp transport-address to remove the configuration.

Syntax

In interface view:

mpls ldp transport-address { ipv4-address | interface }

undo mpls ldp transport-address { ipv4-address | interface }

In LDP peer view:

mpls ldp transport-address ipv4-address

undo mpls ldp transport-address

Default

In interface view, if the interface belongs to the public network, the LDP IPv4 transport address is the local LSR ID. If the interface belongs to a VPN, the LDP IPv4 transport address is the primary IP address of the interface.

In LDP peer view, the LDP IPv4 transport address is the local LSR ID.

Views

Interface view

LDP peer view

Predefined user roles

network-admin

Parameters

ipv4-address: Specifies the LDP IPv4 transport address.

interface: Uses the IPv4 address of the current interface as the LDP IPv4 transport address.

Usage guidelines

Before two LSRs establish an IPv4 LDP session, they must establish a TCP connection by using the LDP IPv4 transport address.

As a best practice, use the default LDP IPv4 transport address.

If two LSRs have multiple links in between and you want to establish an IPv4 LDP session on each link, make sure all the links use the same IPv4 transport address.

Examples

# Specify the LDP transport address carried in Targeted Hellos sent to peer 3.3.3.3 as 2.2.2.2.

<Sysname> system-view
[Sysname] mpls ldp
[Sysname-ldp] targeted-peer 3.3.3.3 
[Sysname-ldp-peer-3.3.3.3] mpls ldp transport-address 2.2.2.2

# On VLAN-interface 2, specify the transport address carried in Link Hellos as the IP address of the interface.

<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] mpls ldp transport-address interface

Related commands

display mpls ldp discovery

targeted-peer