10-7
To do... Use the command... Remarks
Create a class and enter
class view
traffic classifier classifier-name
[ operator { and | or } ]
Required
By default, the relationship
between the match criteria in a
class is logical AND.
Specify the inner VLAN
ID(s) of matching frames
if-match customer-vlan-id
vlan-id-list
Required
Exit to system view quit —
Create a traffic behavior
and enter traffic behavior
view
traffic behavior behavior-name Required
Specify an outer VLAN ID nest top-most vlan-id vlan-id Required
Exit to system view quit —
Create a QoS policy and
enter QoS policy view
qos policy policy-name Required
Associate the traffic class
with the traffic behavior
defined earlier
classifier classifier-name behavior
behavior-name
Required
Exit to system view quit —
Enter
Ethernet
port view
or Layer 2
aggregate
interface
view
interface interface-type
interface-number
Enter the
Ethernet port
view of the
customer
network-side
port
Enter port
group
view
port-group { manual
port-group-name }
Enter the Ethernet port view of
the customer network-side port
Enable basic QinQ qing enable Required
Apply the QoS policy in
the inbound direction
qos apply policy policy-name
inbound
Required
z For detailed information about QoS policies, refer to the part talking about QoS in the QoS
Volume.
z By configuring different match criteria, you can add outer VLAN tags to packets more flexibly. For
example, you can add an outer VLAN tag to packets with the specified source IP/source MAC,
add different outer VLAN tags to packets of different protocols (matched through ACL), or add
different outer VLAN tags to packets with different priorities.
Configuring the TPID Value in VLAN Tags
You can configure the TPID value in VLAN tags in system view, where the configuration takes effect on
all ports of the device.