Step
6.
Configure a marking action
and an inner-to-outer tag
priority copying action.
7.
Return to system view.
8.
Create a QoS policy and
enter QoS policy view.
9.
Associate the traffic class with
the traffic behavior defined
earlier.
10.
Return to system view.
11.
Enter Layer 2 Ethernet
interface view.
12.
Enable basic QinQ.
13.
Apply the QoS policy to the
incoming traffic.
Configuring inner VLAN ID substitution
When you configure basic QinQ or an outer VLAN tagging policy for selective QinQ on a port
connecting the device to the customer network, basic QinQ or the outer VLAN tagging policy can add
outer VLAN tags to packets, but cannot modify the inner VLAN IDs of packets.
To modify the inner VLAN IDs of packets, follow these steps on the port connecting the device to the
service provider network:
Configure a class to match the specified inner VLAN IDs and outer VLAN ID of packets.
1.
Configure a behavior to modify the inner VLAN IDs of packets.
2.
Associate the class with the behavior in a QoS policy.
3.
Apply the QoS policy to the outgoing traffic of the port connecting the device to the service
4.
provider network.
To configure inner VLAN ID substitution:
Step
1.
Enter system view.
2.
Create a class and enter class view.
3.
Configure a match criterion to match
the specified inner VLAN IDs.
4.
Configure a match criterion to match
the specified outer VLAN IDs.
5.
Return to system view.
Command
•
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
interface interface-type interface-number
qinq enable
qos apply policy policy-name inbound
Command
system-view
traffic classifier classifier-name [ operator
and ]
if-match customer-vlan-id vlan-id-list
if-match service-vlan-id vlan-id
quit
161
Remarks
Use either command.
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Remarks
N/A
By default, the
operator of a class is
AND.
N/A
N/A
N/A