
217
Step Command
Remarks
4.
Assign the port to the original
VLANs and the translated
VLANs.
•
port trunk permit vlan
vlan-id-list
•
port hybrid vlan
vlan-id-list
tagged
By default:
•
A trunk port allows only packets
from VLAN 1 to pass through.
•
A hybrid port is an untagged
member of the VLAN to which
the port belongs when its link
type is
access
.
5.
Configure a many-to-one
VLAN mapping.
vlan mapping
uni
{
range
vlan-range-list
|
single
vlan-id-list
}
translated-vlan
vlan-id
By default, no VLAN mapping is
configured on an interface.
Configuring the network-side port
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.
•
Configure the port as a trunk
port:
port link-type trunk
•
Configure the port as a hybrid
port:
port link-type hybrid
By default, the link type of a port is
access
.
4.
Assign the port to the
translated VLAN.
•
port trunk permit vlan
vlan-id-list
•
port hybrid vlan
vlan-id-list
tagged
By default:
•
A trunk port allows only packets
from VLAN 1 to pass through.
•
A hybrid port is an untagged
member of the VLAN to which
the port belongs when its link
type is
access
.
5.
Configure the port to use the
original VLAN tags of the
many-to-one mapping to
replace the VLAN tags of the
packets destinated to the user
network.
vlan mapping
nni
By default, the port does not
replace the VLAN tags of the
packets destinated to the user
network.
Configuring one-to-two VLAN mapping
Configure one-to-two VLAN mapping on the customer-side port of the edge devices from which customer
traffic enters SP networks, on PE 1 and PE 4 in
for example. One-to-two VLAN mapping
enables the edge devices to add an outer VLAN tag to each incoming packet.