Marking the 802.1p priorities in outer VLAN tags according to the inner VLAN IDs or the 802.1p
•
priorities in the inner VLAN tags.
Copying the 802.1p priority in the inner VLAN tags to the outer VLAN tags.
•
Follow these steps 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...
Enter system view
Create a class and enter class view
Configure a match criterion
Return to system view
Create a traffic behavior and enter
traffic behavior view
Configure a marking action and an
inner-to-outer tag priority copying
action
Return to system view
Create a QoS policy and enter
QoS policy view
Associate the traffic class with the
traffic behavior defined earlier
Return to system view
Enter Layer 2 Ethernet interface
view or port group view of the
customer network-side port
Enable basic QinQ
Apply the QoS policy to the
incoming traffic
Use the command...
system-view
traffic classifier classifier-name [ operator
{ and | or } ]
Match the specified inner VLAN IDs:
if-match customer-vlan-id vlan-id-list
Match the specified inner VLAN tag
priorities:
if-match customer-dot1p 8021p-list
quit
traffic behavior behavior-name
Mark the 802.1p priorities in outer VLAN
tags:
remark dot1p 8021p
Copy the inner 802.1p priorities to outer
802.1p priorities:
remark dot1p customer-dot1p-trust
quit
qos policy policy-name
classifier classifier-name behavior
behavior-name
quit
Enter Layer 2 Ethernet interface view:
interface interface-type interface-number
Enter port group view:
port-group manual port-group-name
qinq enable
qos apply policy policy-name inbound
181
Remarks
—
Required
By default, the operator of a
class is AND.
Required
Use either command.
—
Required
Required
Use either command.
—
Required
Required
—
Required
Use either command.
Required
Required