154
NOTE:
• An inner VLAN tag corresponds to only one outer VLAN tag.
• To change an outer VLAN tag, you must delete the old outer VLAN tag configuration and
configure a new outer VLAN tag.
Configuring an outer VLAN tagging policy in the QoS
policy-based approach
You can configure an outer VLAN tagging policy on the HPE 3100 v2 EI switches in the QoS
policy-based approach. For more information about QoS policies, see ACL and QoS Configuration
Guide.
Configure an outer VLAN tagging policy in the QoS policy-based approach in the following workflow:
• Configure a class to match packets with certain tags.
• Configure a traffic behavior to tag packets with an outer VLAN tag.
• Create a QoS policy, associate the class with the behavior in the policy, and globally apply the
policy to the incoming traffic.
• Enable selective QinQ on the port that connects to the user.
To configure an outer VLAN tagging policy in the QoS policy-based approach:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Create a class and enter
class view.
traffic classifier
classifier-name
[
operator
{
and
|
or
} ]
By default, the operator of a
class is AND.
3. Specify the inner VLAN IDs
of matching frames.
if-match customer-vlan-id
vlan-id-list
N/A
4. Return to system view.
quit
N/A
5. Create a traffic behavior and
enter traffic behavior view.
traffic behavior
behavior-name N/A
6. Specify an outer VLAN ID.
nest top-most vlan-id
vlan-id N/A
7. Return to system view.
quit
N/A
8. Create a QoS policy and
enter QoS policy view.
qos policy
policy-name
N/A
9. Associate the traffic class
with the traffic behavior
defined earlier.
classifier
classifier-name
behavior
behavior-name
N/A
10. Return to system view.
quit
N/A
11. Apply the QoS policy to the
incoming traffic globally.
qos apply policy
policy-name
global inbound
N/A
12. Enter interface view or port
group view.
• Enter Layer 2 Ethernet
interface view:
interface interface-type
interface-number
• Enter port group view:
port-group manual
port-group-name
Use either command.
• Settings made in Layer 2
Ethernet interface view
take effect only on the
current port.
• Settings made in port group
view take effect on all ports
in the port group.
13. Enable selective QinQ.
qinq enable downlink
N/A