154
To configure one-to-two 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
CVLANs.
•
For the trunk port:
port trunk permit vlan
vlan-id-list
•
For the hybrid port:
port hybrid vlan vlan-id-list
{
tagged
|
untagged
}
N/A
5.
Configure the port to allow
packets from the SVLAN to
pass through untagged.
•
For the trunk port:
a.
Configure the SVLAN as the
PVID of the trunk port:
port trunk pvid vlan
vlan-id
b. Assign the trunk port to the
SVLAN:
port trunk permit vlan
{
vlan-id-list
|
all
}
•
For the hybrid port:
port hybrid
vlan
vlan-id-list
untagged
N/A
6.
Configure a one-to-two VLAN
mapping.
vlan mapping nest
{
range
vlan-range-list
|
single vlan-id-list
}
nested-vlan
vlan-id
By default, no VLAN mapping
is configured on an interface.
Only one SVLAN tag can be
added to packets from the
same CVLAN. To add
different SVLAN tags to
different CVLAN packets, set
the port link type to hybrid and
repeat this command.
Configuring zero-to-two VLAN mapping
As a best practice, set the MTU to a minimum of 1504 bytes for ports on the forwarding path of the
double-tagged packet in the service provider network.
To configure zero-to-two VLAN mapping:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Layer 2 Ethernet
interface view or Layer 2
•
Enter Layer 2 Ethernet interface
view:
interface
interface-type
N/A