The CVLAN tag of packets matching the one-to-one VLAN mapping configuration is replaced
with the specified SVLAN tag.
Packets not matching the one-to-one VLAN mapping are tagged with the PVID tag. For more
information about QinQ, see
When VLAN mapping is enough for meeting your requirements, use VLAN mapping. When you
•
need other actions, for example, traffic accounting, in addition to adding or modifying VLAN tags,
use a QoS policy. When you configure both VLAN mapping and a QoS policy and the
configurations conflict, the QoS policy takes effect. For information about QoS policies, see ACL
and QoS Configuration Guide.
IMPORTANT:
Use the appropriate VLAN mapping methods for the devices in the network.
To configure VLAN mapping:
Task
Configuring one-to-one VLAN mapping
Configuring one-to-two VLAN mapping
Configuring two-to-two VLAN mapping
Configuring one-to-one VLAN mapping
Configure one-to-one VLAN mapping on the customer-side ports of wiring-closet switches (see
to isolate traffic of the same service type from different homes.
Before you configure one-to-one VLAN mapping, create the original VLAN and the translated VLAN.
To configure one-to-one VLAN mapping:
Step
1.
Enter system view.
2.
Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view.
3.
Set the link type of the port.
"Configuring
QinQ."
Remarks
Configure one-to-one VLAN mapping on the wiring-closet
switch, as shown in
Configure one-to-two VLAN mapping on PE1 and PE4, as
shown in
Figure
networks enter the service provider networks.
Configure two-to-two VLAN mapping on PE3, as shown
in
Figure
47, which is an edge device of the SP 2 network.
Command
system-view
•
Enter Layer 2 Ethernet interface
view:
interface interface-type
interface-number
•
Enter Layer 2 aggregate interface
view:
interface bridge-aggregation
interface-number
•
Configure the port as a trunk port:
port link-type trunk
•
Configure the port as a hybrid
port:
port link-type hybrid
167
Figure
46.
47, through which traffic from customer
Remarks
N/A
N/A
By default, the link type of a
port is access.
Figure
46)