
229
Parameters
tunnel-policy-name
: Specifies the name of the tunneling policy for the VPLS instance, which is a string of 1
to 19 characters without any blank space.
Examples
# Specify that VPLS instance aaa uses the tunneling policy of policy1.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] tnl-policy policy1
trans-mode
Description
Use the
trans-mode
command to specify the PW transport mode.
Use the
undo trans-mode
command to restore the default.
By default, the PW transport mode is VLAN.
The packet encapsulation type of an Ethernet PW, also called “the PW transport mode,” can be either
Ethernet or VLAN.
•
In Ethernet mode, P-TAG is not transferred on the PW. If a packet from a CE contains the service
delimiter, the PE removes the service delimiter, and adds a PW label and tunnel label into the packet
before forwarding the packet. Otherwise, the PE directly adds a PW label and tunnel label into the
packet, and then forwards the packet. For a packet to be sent downstream, your configuration
determines whether the PE adds the service delimiter into the packet. However, you cannot rewrite
and remove existing tags.
•
In VLAN mode, every packet to the PW must carry a P-TAG. If a packet from a CE contains the
service delimiter, the PE keeps the P-TAG unchanged, or changes the P-TAG to either the VLAN tag
expected by the peer PE or to a null tag (the tag value is 0), and then adds a PW label and tunnel
label into the packet before sending the packet out. If the packet contains no service delimiter, the
PE adds the VLAN tag expected by the peer PE or a null tag, and then a PW label and a tunnel
label into the packet before sending the packet out. For a packet to be sent downstream, your
configuration determines whether the PE rewrites, removes, or retains the service delimiter.
Syntax
trans-mode
{
ethernet
|
vlan
}
undo trans-mode
View
PW class template view
Default level
2: System Level
Parameters
ethernet
: Specifies the PW transport mode as Ethernet.
vlan
: Specifies the PW transport mode as VLAN.
Examples
# Configure the PW transport mode as Ethernet.