The peer pw creates a PW and displays the PW view.
The undo peer pw deletes the created PW.
By default, no PW is created.
peer peer-address [ negotiation-vc-id vc-id ] pw pw-name
undo peer peer-address [ negotiation-vc-id vc-id ] pw
Parameter | Description | Value |
---|---|---|
peer peer-address | Specifies the IPv4 address of the peer. Generally, it is specified as the loopback address of the peer. | - |
negotiation-vc-id vc-id | Specifies the ID of a VC, which uniquely identifies the VC. Generally, this parameter is specified when the two ends with different VSI IDs need to interconnect. | vc-id cannot be the same as the IDs of other local VSIs. The negotiated VC IDs to the same peer must be different. The value is an integer ranging from 1 to 4294967295. |
pw pw-name | Specifies the name of a PW. The PW name is used to distinguish the PW from other PWs, and must be unique in the same VSI. Nevertheless, the PW name can be used in other VSIs. | The value is a string of 1 to 15 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
In Martini VPLS, you need to run the peer pw command to configure a PW after specifying a peer.
Prerequisites
The IP address of the peer has been specified using the peer peer-address command.
Precautions
If the value of negotiation-vc-id vc-id is different from the value of vsi-id configured using the vsi-id command, you must configure negotiation-vc-id vc-id when running the undo peer pw command to delete the PW. Otherwise, the PW cannot be deleted.
# Create the PW view.
<HUAWEI> system-view [HUAWEI] vsi aa static [HUAWEI-vsi-aa] pwsignal ldp [HUAWEI-vsi-aa-ldp] vsi-id 1 [HUAWEI-vsi-aa-ldp] peer 10.1.1.1 [HUAWEI-vsi-aa-ldp] peer 10.1.1.1 pw pw1 [HUAWEI-vsi-aa-ldp-pw-pw1]
# Delete the PW.
<HUAWEI> system-view [HUAWEI] vsi aa static [HUAWEI-vsi-aa] pwsignal ldp [HUAWEI-vsi-aa-ldp] vsi-id 1 [HUAWEI-vsi-aa-ldp] peer 10.1.1.1 [HUAWEI-vsi-aa-ldp] peer 10.1.1.1 pw pw1 [HUAWEI-vsi-aa-ldp-pw-pw1] quit [HUAWEI-vsi-aa-ldp] undo peer 10.1.1.1 pw