The remote-ip command allows you to assign an IP address to a remote LDP peer.
The undo remote-ip command deletes the configuration.
By default, the IP address of the remote LDP peer is not configured.
Parameter | Description | Value |
---|---|---|
ip-address | Specifies the IPv4 address of a remote peer. | The value is in decimal notation. The IPv4 address of a local interface is not supported. |
pwe3 | Prohibits labels from being distributed to a specified remote peer. | - |
Usage Scenario
After a remote LDP peer is configured, to assign an IP address to the remote LDP peer, run the remote-ip command in the remote MPLS LDP peer view.
The IP address must be the LSR ID of the remote LDP peer. When the LDP LSR ID and the MPLS LSR ID are different, the LDP LSR ID takes effect.
The remote peer uses the LSR ID as the transport address to create a TCP connection.
remote-ip ip-address pwe3 command: prevents the LSR from distributing labels to a specified remote peer.
remote-peer pwe3 command: prevents the LSR from distributing labels to all remote peers.
When a backbone network is transmitting TE services in the LDP over TE scenario, do not disable a device from distributing labels to remote peers.
Prerequisites
Remote LDP peers have been configured.
Precautions
Modifying or deleting the configured IP address of a remote peer leads to the deletion of a remote LDP session.
After a remote peer IP address is specified using the remote-ip ip-address command, ip-address cannot be used as a local interface IP address. If it is used as a local interface IP address, the remote LDP session is interrupted.
# Configure the address for a remote peer.
<HUAWEI> system-view [HUAWEI] mpls ldp remote-peer bji [HUAWEI-mpls-ldp-remote-bji] remote-ip 10.3.3.3
# Prohibit labels from being distributed to the remote peer at 10.1.1.1/32.
<HUAWEI> system-view [HUAWEI] mpls ldp remote-peer rtc [HUAWEI-mpls-ldp-remote-rtc] remote-ip 10.1.1.1 pwe3