< Home

peer-address

Function

The peer-address command assigns a remote IP address to a PW template.

The undo peer-address command deletes the remote IP address assigned to a PW template.

By default, a PW template is not configured with a remote IP address.

Format

peer-address ip-address

undo peer-address

Parameters

Parameter Description Value
ip-address Specifies the IPv4 address of the peer. Generally, ip-address is a loopback address of the peer and needs be the same as the destination address of the tunnel. The value is in dotted decimal notation.

Views

PW template view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The peer IP address can be set either using a PW template or the mpls l2vc command. The PW template allows you to modify the peer IP address in real time. If you want to change the peer IP address using the mpls l2vc command, you must delete the existing peer IP address first.

After the peer IP address is changed:

  • If the PW template is in use, you must run the reset pw pw-template command for the change to take effect. This, however, may disconnect and re-establish the PWs that apply the PW template.
  • If the PW template is not in use, it does not need to restart.

Prerequisites

  • MPLS L2VPN has been enabled in the system view.
  • A PW template has been created in the system view.

Precautions

If the peer IP address has been configured using both a PW template and the mpls l2vc command, only the peer IP address configured using the mpls l2vc command takes effect.

Example

# Assign a remote IP address to a PW template.

<HUAWEI> system-view
[HUAWEI] pw-template pwt
[HUAWEI-pw-template-pwt] peer-address 1.1.1.1

# Modify a remote IP address in a PW template.

<HUAWEI> system-view
[HUAWEI] pw-template pwt
[HUAWEI-pw-template-pwt] undo peer-address
[HUAWEI-pw-template-pwt] peer-address 2.2.2.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >