Parameter | Description | Value |
---|---|---|
peer-address peer-ip |
Specifies the IPv4 address of a peer PE. |
The value is an IPv4 address in dotted decimal notation (X.X.X.X), for example, 10.1.1.1. |
pwId |
Specifies a 32-bit VC ID. A VC ID and a VC type uniquely identify a VC. |
The value is an integer ranging from 1 to 4294967295. |
ethernet |
This encapsulation type is used when Ethernet packets do not carry VLAN information. |
- |
vlan |
This encapsulation type is used when Ethernet packets carry VLAN information. |
- |
ip-interworking |
Enables static PW interworking when devices in the interworking are all provided by Huawei. |
- |
ip-layer2 |
Enables IP interworking for an LDP PW between a Huawei device and a non-Huawei device. ip-layer2 is required for IP interworking between a Huawei device and a non-Huawei device. |
- |
cesopsn-basic |
Specifies the PW encapsulation type as cesopsn-basic. |
- |
satop-e1 |
SAToP is insensitive to the E1 frame structure and encapsulates a whole E1 frame into a PW packet. |
- |
cep |
This encapsulation type is used for CEP services. |
- |
Usage Scenario
When modifying the attributes for a PW template, you need to run the reset pw command to commit the new configuration, so that the new configuration takes effect on all PWs applying the PW template. PW attributes can be configured by using a PW template or commands. The attributes configured using commands take precedence over those configured using the PW template. If you configure PW attributes using commands, the attributes in the PW template do not take effect. If you run the reset pw command in this situation, the PW attributes remain unchanged. You can configure the PW attributes to be modified in the PW template rather than configure the attributes using commands.
Prerequisites
A PW or PW template has been created.
Configuration Impact
Running the reset pw command to re-create a PW or a PW template may interrupt services on the PW or PWs applying the PW template.
Precautions
If you create a PW template with the same name as an existing one, the PWs applying the existing PW template are re-created. If a PW applies a PW template, the attributes of the PW change along with the attributes of the PW template.
<HUAWEI> reset pw pw-template pwt1
<HUAWEI> reset pw 100 vlan
<HUAWEI> reset pw peer-address 10.1.1.1 100 vlan