156
Step Command
Remarks
mapping.
inner-vlan-id
translated-vlan
outer-vlan-id inner-vlan-id
is configured on an interface.
Configuring two-to-three VLAN mapping
As a best practice, set the MTU to a minimum of 1508 bytes for ports on the forwarding path of the
triple-tagged packet in the service provider network.
To configure two-to-three VLAN mapping:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view.
•
Enter Layer 2 Ethernet interface
view:
interface
interface-type
interface-number
•
Enter Layer 2 aggregate
interface view:
interface bridge-aggregation
interface-number
N/A
3.
Set the link type of the port.
•
Set the port link type to trunk:
port link-type trunk
•
Set the port link type to hybrid:
port link-type hybrid
By default, the link type of a
port is
access
.
4.
Assign the port to the original
SVLAN.
•
For the trunk port:
port trunk permit vlan
vlan-id-list
•
For the hybrid port:
port hybrid vlan vlan-id-list
tagged
By default, a trunk port is
assigned only to VLAN 1, and
a hybrid port is an untagged
member of VLAN 1.
5.
Configure the port to allow
the packets from the
outermost VLAN to pass
through untagged.
•
For the trunk port:
a.
Configure the outermost
VLAN as the PVID of the
trunk port:
port trunk pvid vlan
vlan-id
b.
Assign the port to the PVID:
port trunk permit vlan
{
vlan-id-list
|
all
}
•
For the hybrid port:
port hybrid
vlan
vlan-id-list
untagged
N/A
6.
Configure a two-to-three
VLAN mapping.
vlan mapping double-tagged
{
outer-vlan outer-vlan-id inner-vlan
inner-vlan-id
|
outer-vlan-range
vlan-id-list
inner-vlan inner-vlan-id
|
outer-vlan
outer-vlan-id
inner-vlan-range
vlan-id-list
}
nested-vlan nested-vlan
By default, no VLAN mapping
is configured on an interface.
Displaying and maintaining VLAN mapping
Execute
display
commands in any view.