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