< Home

reset pw

Function

The reset pw command re-creates a PW or a PW template.

Format

reset pw { [ peer-address peer-address ] pw-id pw-type | pw-template pw-template-name }

Parameters

Parameter Description Value
peer-address peer-address Specifies the IPv4 address of the target PE. The value is in dotted decimal notation.
pw-id Specifies the ID of a VC connected to L2VPN. The value is an integer that ranges from 1 to 4294967295.
pw-type Specifies the encapsulation type of a PW. Currently, PWs of the following types are supported: ethernet, vlan, and ip-interworking.
pw-template Re-creates all PWs in the PW template. -
pw-template-name Specifies the PW template name. The value is an existing PW template name.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

After changing the parameters in a PW template, you need to run the reset pw pw-template command to make the modification take effect. The configuration on the PW template applies to all PWs using this PW template. You can configure the attributes of a PW by using a PW template or commands. The attributes configured by using commands take precedence over those configured by using the template. If you configure PW attributes by using commands, the corresponding attributes in the PW template do not take effect. Therefore, if you run the reset pw pw-template and reset pw pw-id commands, the PW attributes remain unchanged. To change a PW attribute, configure the attribute in the PW template but do not configure attribute by using a command.

Example

# Re-create a PW by specifying the VC ID and VC type.

<HUAWEI> reset pw 100 vlan

# Re-create all PWs that use the PW template named pwt1.

<HUAWEI> reset pw pw-template pwt1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >