To do...
10.
Return to system view
11.
Enter the
Ethernet
port view
of the
customer
network-
side port
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:
To do...
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.
Return to system view
5.
Create a traffic behavior and
enter traffic behavior view
6.
Configure the action of marking
the inner VLAN IDs
7.
Return to system view
8.
Create a QoS policy and enter
QoS policy view
Use the command...
quit
Enter Layer 2
interface interface-type interface-
Ethernet port
number
view
Enter port group
port-group manual port-group-
view
name
qinq enable
qos apply policy policy-name
inbound
Use the command...
system-view
traffic classifier classifier-name
[ operator { and | or } ]
if-match customer-vlan-id vlan-id-
list
quit
traffic behavior behavior-name
remark customer-vlan-id vlan-id
quit
qos policy policy-name
169
Remarks
—
Required.
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.
Required.
Required.
Remarks
—
Required.
By default, the operator of a
class is AND.
Required.
—
Required.
Required.
—
Required.