R0106-HP MSR Router Series MPLS Command Reference(V7)
291
[Sysname-xcg-bbb] auto-discovery bgp
[Sysname-xcg-bbb-auto] pw-class pw100
Related commands
• control-word enable
• display l2vpn pw-class
• pw-class
• pw-type
pw-type
Use pw-type to specify a PW type for a PW class.
Use undo pw-type to restore the default.
Syntax
pw-type { ethernet | vlan }
undo pw-type
Default
The PW type is VLAN.
Views
PW class view
Predefined user roles
network-admin
Parameters
ethernet: Specifies the PW type as Ethernet.
vlan: Specifies the PW type as VLAN.
Usage guidelines
This command takes effect only when the AC type is Ethernet.
When the PW type is Ethernet, the PE encapsulates packets forwarded between the AC and PW as
follows:
• Traffic sent to the PW cannot carry the P-tag.
{ If traffic from the AC has the P-tag, the PE removes the P-tag, adds the PW label and public
tunnel encapsulation, and forwards the traffic through the PW.
{ If traffic from the AC does not have the P-tag, the PE adds the PW label and public tunnel
encapsulation and forwards the traffic through the PW.
• For traffic received from the PW:
{ If the AC access mode (configured by ac interface) is VLAN, the PE adds the P-tag and forwards
the traffic through the AC.
{ If the AC access mode is Ethernet, the PE directly forwards the traffic through the AC. For all AC
access mode configurations, the PE cannot modify or delete the P-tag for the traffic from the PW.
When the PW type is VLAN, the PE encapsulates packets forwarded between the AC and PW as follows:
• Traffic sent to the PW must carry the P-tag.