![H3C S3600V2 SERIES Скачать руководство пользователя страница 212](http://html2.mh-extra.com/html/h3c/s3600v2-series/s3600v2-series_layer-2-lan-switching-configuration-manual_3654240212.webp)
197
# Create a QoS policy named
qinq
, associate traffic class
A10
with traffic behavior
P100
, and
associate traffic class
A20
with traffic behavior
P200
.
[PE2] qos policy qinq
[PE2-qospolicy-qinq] classifier A10 behavior P100
[PE2-qospolicy-qinq] classifier A20 behavior P200
[PE2-qospolicy-qinq] quit
# Enable basic QinQ on the port.
[PE2] interface ethernet 1/0/1
[PE2-Ethernet1/0/1] qinq enable
# Apply QoS policy
qinq
to the incoming traffic on the port.
[PE2-Ethernet1/0/1] qos apply policy qinq inbound
{
Configure Ethernet 1/0/2:
# Configure Ethernet 1/0/2 as a trunk port and assign it to VLAN 100 and VLAN 200.
[PE2] interface ethernet 1/0/2
[PE2-Ethernet1/0/2] port link-type trunk
[PE2-Ethernet1/0/2] port trunk permit vlan 100 200
# Set the TPID in the outer VLAN tags to 0x8200.
[PE2-Ethernet1/0/2] qinq ethernet-type service-tag 8200
[PE2-Ethernet1/0/2] quit
3.
On the third-party devices between PE 1 and PE 2, configure the port that connects to PE 1 and that
connecting to PE 2 to allow tagged frames of VLAN 100 and VLAN 200 to pass through. (Details
not shown.)
Comprehensive selective QinQ configuration example
Network requirements
As shown in
•
Company A uses CVLAN 10 and CVLAN 20 to transmit voice traffic and data traffic separately,
and Company B uses CVLAN 30 and CVLAN 40 to transmit voice traffic and data traffic separately.
The services of the two companies are integrated together.
•
PE 1 and PE 2 are edge devices on the service provider network and are connected through
third-party devices with a TPID value of 0x8200.
•
Configure the edge and third-party devices to allow the voice traffic and data traffic to be
transmitted between the two companies via SVLAN 100 SVLAN 200 separately.