peer-address (PW template view)

Function

The peer-address command configures the peer address for a PW in the PW template.

The peer-address command deletes the peer address of a PW from the PW template.

By default, no peer address is configured for a PW.

Format

peer-address ip-address

undo peer-address

Parameters

Parameter Description Value
ip-address

Specifies the IP address of the remote peer on a PW.

The value is usually the LSR ID of the remote peer.

Views

PW template view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

A PW template can simplify the configuration of PWs with similar attributes.

The peer attribute can be specified for a PW using the mpls l2vc or mpls static-l2vc command or a PW template. If it is specified using both a command and a PW template, the configuration made using the command prevails.

Prerequisites

  • MPLS L2VPN has been enabled.
  • A PW template has been created.

Configuration Impact

After the peer address is specified in a PW template, the restart of the PW template may affect system operation.

Follow-up Procedure

Apply a configured PW template when creating an LDP or SVC VPWS connection on an interface.

Precautions

The peer address of a PW cannot be changed.

Example

# Configure 1.1.1.1 as the peer address for a PW in a PW template.
<HUAWEI> system-view
[~HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] pw-template pwt
[*HUAWEI-pw-template-pwt] peer-address 1.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >