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.
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
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: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.<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