189
To configure inner VLAN ID substitution:
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
]
By default, the
operator of a class is
AND.
3.
Configure a match criterion to match
the specified inner VLAN IDs.
if-match customer-vlan-id
vlan-id-list
N/A
4.
Configure a match criterion to match
the specified outer VLAN IDs.
if-match service-vlan-id
vlan-id
N/A
5.
Return to system view.
quit
N/A
6.
Create a traffic behavior and enter
traffic behavior view.
traffic behavior
behavior-name
N/A
7.
Configure the action of marking the
inner VLAN IDs.
remark customer-vlan-id
vlan-id
N/A
8.
Return to system view.
quit
N/A
9.
Create a QoS policy and enter QoS
policy view.
qos policy
policy-name
N/A
10.
Associate the traffic class with the
traffic behavior defined earlier.
classifier
classifier-name
behavior
behavior-name
N/A
11.
Return to system view.
quit
N/A
12.
Enter Ethernet interface view or port
group view of the service provider
network-side port.
•
Enter Ethernet interface view:
interface
interface-type
interface-number
•
Enter port group view:
port-group manual
port-group-name
Use either command.
13.
Apply the QoS policy to the
outgoing traffic.
qos apply policy
policy-name
outbound
N/A
Configuring the TPID value in VLAN tags
Tag Protocol Identifier (TPID) identifies a frame as an 802.1Q tagged frame. According to 802.1Q, the
TPID of tagged frames is 0x8100. This value varies with vendors. On the device, the TPID in the 802.1Q
tag added on a basic QinQ-enabled port is always 0x8100. In a multi-vendor network, you must set the
TPID setting on one vendor's device to be compatible with another vendor's device.
TPID settings include CVLAN TPID and SVLAN TPID.
A basic QinQ or customer-side QinQ enabled port uses the CLAN TPID to match incoming tagged
frames. An incoming frame is handled as an untagged frame if its TPID is different from the CVLAN TPID.
The device supports one CVLAN TPID for all QinQ-enabled ports. For more information about
customer-side QinQ, see "
A service provider-side port uses the SVLAN TPID to re-mark the TPID in outgoing frames' SVLAN tags, in
addition to matching incoming tagged frames. SVLAN TPIDs are configurable on a per-port basis.
For example, the PE device is connected to a customer device that uses the TPID 0x8200 and to a
provider device that uses the TPID 0x9100. To be compatible with these devices, you must configure