In this implementation, Switch A is an access device of the service provider. The users connecting to it
include common customers (in VLAN 8 to VLAN 100), VIPs (in VLAN 101 to VLAN 200), and IP
telephone users (in VLAN 201 to VLAN 300). Packets of all these users are forwarded by Switch A to
the public network.
After the selective QinQ feature and the inner-to-outer tag mapping feature are enabled on the port
connecting Switch A to these users, the port will add different outer VLAN tags to the packets according
to their inner VLAN tags. For example, you can configure to add the tag of VLAN 1002 to the packets of
IP telephone users in VLAN 201 to VLAN 300 and forward the packets to the VoIP device, which is
responsible for processing IP telephone services.
To guarantee the quality of voice packet transmission, you can configure QoS policies in the public
network to reserve bandwidth for packets of VLAN 1002 and forward them preferentially.
In this way, you can configure different forwarding policies for data of different type of users, thus
improving the flexibility of network management. On the other hand, network resources are well utilized,
and users of the same type are also isolated by their inner VLAN tags. This helps to improve network
security.
Inner-to-Outer Tag Priority Mapping
As shown in
Figure
is in the range 0 to 7. By configuring inner-to-outer tag priority mapping for a VLAN-VPN-enabled port,
you can assign outer tags of different priorities to packets according to their inner tag priorities.
Refer to QoS-QoS profile part for information about priority.
Selective QinQ Configuration
Configuration Task List
Enabling the Selective QinQ Feature for a Port
Configuring the Inner-to-Outer Tag Priority Mapping Feature
Enabling the Selective QinQ Feature for a Port
The following configurations are required for the selective QinQ feature:
Enabling the VLAN-VPN feature on the current port
Configuring the current port to permit packets of specific VLANs (the VLANs whose tags are to be
used as the outer VLAN tags are required)
Table 2-1 Enable the selective QinQ feature
Operation
Enter system view
Enter Ethernet port view
Configure the outer VLAN
tag and enter QinQ view
1-3, the user priority field is the 802.1p priority of the tag. The value of this 3-bit field
Task
Command
system-view
interface interface-type
interface-number
vlan-vpn vid vlan-id
—
—
Required
2-2
Remarks
Required
Optional
Description