168
• Copying the 802.1p priority in the inner VLAN tags to the outer VLAN tags.
If you set the trusted packet priority type to 802.1p priority on a port with QinQ or selective QinQ
enabled, the port automatically copies the 802.1p priority from the inner VLAN tag to the outer VLAN tag
when adding the outer VLAN tag to each packet. For more information about the trusted packet priority
type, see the ACL and QoS Configuration Guide.
To mark the 802.1p priorities in outer VLAN tags according to the inner VLAN IDs or the 802.1p priorities
in the inner VLAN tags:
To do... Use the command... Remarks
1. Enter system view
system-view —
2. Create a class and enter class
view
traffic classifier classifier-name
[ operator { and | or } ]
Required.
By default, the operator of a class
is AND.
Configure a
match criterion
to match the
specified inner
VLAN IDs
if-match customer-vlan-id vlan-id-
list
3. Configure
a match
criterion
Configure a
match criterion
to match the
specified inner
VLAN tag
priorities
if-match customer-dot1p 8021p-
list
Use either command.
4. Return to system view
quit —
5. Create a traffic behavior and
enter traffic behavior view
traffic behavior behavior-name Required.
Configure the
action of
marking the
802.1p
priorities in
outer VLAN
tags
remark dot1p 8021p
6. Configure
the action
of
specifying
the outer
VLAN tag
priorities of
packets
Configure the
action of
copying the
802.1p
priorities in the
inner VLAN
tags to the
outer VLAN
tags
remark dot1p customer-dot1p-
trust
Use either command.
Choose to configure inner-outer
VLAN 802.1p priority mapping
or copying as needed.
7. Return to system view
quit —
8. Create a QoS policy and
enter QoS policy view
qos policy policy-name Required.
9. Associate the traffic class with
the traffic behavior defined
earlier
classifier classifier-name behavior
behavior-name
Required.