remote-ip

Function

The remote-ip command assigns an IP address to a remote LDP peer.

The undo remote-ip command deletes an IP address of a remote LDP peer.

The clear remote-ip pwe3 command deletes the explicit configuration of enabling or disabling the ability to distribute LDP labels to a specified remote LDP peer.

By default, no IP address is assigned to a remote LDP peer.

Format

remote-ip ip-address

clear remote-ip pwe3

undo remote-ip

Parameters

Parameter Description Value
ip-address

Specifies the IPv4 address of a remote peer.

The value is in dotted decimal notation.

Views

Remote MPLS LDP peer view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-ldp write

Usage Guidelines

Usage Scenario

After a remote LDP peer is configured, to assign an IP address to the remote LDP peer, you can 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.

Prerequisites

Run the command mpls ldp remote-peer to configure remote LDP peer.

Configuration Impact

After the clear remote-ip pwe3 command is run, whether a local end distributes labels to remote peers is determined by the remote-peer pwe3 command run in the MPLS-LDP view.

Precautions

Modifying or deleting the configured IP address of a remote peer leads to the deletion of a remote LDP session. Before the configured IP address of a remote peer is changed, the undo remote-ip command must be run to delete the existing configuration.

Example

# Delete the explicit configuration of enabling or disabling the ability to distribute labels to a remote LDP peer at 10.1.1.9.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls ldp
[*HUAWEI-mpls-ldp] quit
[*HUAWEI] mpls ldp remote-peer rtq
[*HUAWEI-mpls-ldp-remote-rtq] remote-ip 10.1.1.9
[*HUAWEI-mpls-ldp-remote-rtq] clear remote-ip pwe3
# Assign an IP address to a remote peer.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls ldp
[*HUAWEI-mpls-ldp] quit
[*HUAWEI] mpls ldp remote-peer BJI
[*HUAWEI-mpls-ldp-remote-BJI] remote-ip 3.3.3.3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >