H3C Technologies H3C S10500 Series Switches User Manual
Page 189

178
•
Configure a traffic behavior to tag packets with an outer VLAN tag.
•
Create a QoS policy and associate the class with the behavior in the policy.
•
Apply the QoS policy to the port that connects to the user.
Follow these steps to configure selective QinQ:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Create a class and enter class view
traffic classifier classifier-name
[ operator { and | or } ]
Required
By default, the operator of a class
is AND.
Specify the inner VLAN IDs of
matching frames
if-match customer-vlan-id
vlan-id-list
Required
Return 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
Return 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
Return to system view
quit
—
Enter Ethernet interface view or
port group view of the customer
network-side port
•
Enter Ethernet interface view:
interface interface-type
interface-number
•
Enter port group view:
port-group manual
port-group-name
Required
Use either command.
Enable basic QinQ
qinq enable
Required
Apply the QoS policy to the
incoming traffic
qos apply policy policy-name
inbound
Required
CAUTION:
•
Selective QinQ has higher priority than basic QinQ. A received frame is tagged with an outer VLAN ID
based on basic QinQ only after it fails to match the match criteria defined in the traffic class.
•
Selective QinQ is achieved through QoS policies. For more information about QoS policies, see
ACL
and QoS Configuration Guide.
Configuring an inner-outer VLAN 802.1p priority mapping
Through QoS policies, the S10500 Switch Series marks the 802.1p priorities in outer VLAN tags
according to the inner VLAN IDs or the 802.1p priorities in the inner 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: