2-2
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 1-3, the user priority field is the 802.1p priority of the tag. The value of this 3-bit field
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

Complete the following tasks to configure selective QinQ:
Task Remarks
Enabling the Selective QinQ Feature for a Port Required
Configuring the Inner-to-Outer Tag Priority Mapping Feature Optional

Enabling the Selective QinQ Feature for a Port

The following configurations are required for the selective QinQ feature:
z Enabling the VLAN-VPN feature on the current port
z 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)
Follow these steps to enable the selective QinQ feature:
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet port view interface interface-type
interface-number
Configure the outer VLAN
tag and enter QinQ view vlan-vpn vid vlan-id Required
Configure to add outer
VLAN tags to the packets
with the specific inner
VLAN tags
raw-vlan-id inbound
vlan-id-list
Required
By default, the feature of adding an outer
VLAN tag to the packets with the specific
inner VLAN tags is disabled.