The two branches of a company, Site 1 and Site 2, are connected through the service provider
•
network and use CVLAN 10 and CVLAN 20 to transmit voice traffic and data traffic separately.
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 frames from CVLAN 10 to be transmitted
•
between the branches via SVLAN 100 and frames from CVLAN 20 to be transmitted between the
branches via SVLAN 200.
Figure 54 Network diagram
Configuration procedure
IMPORTANT:
Make sure that you have configured the switches in the service provider network to allow QinQ packets to
pass through.
Configure PE 1:
1.
Configure GigabitEthernet 1/0/1:
# Configure GigabitEthernet 1/0/1 as a hybrid port to permit frames of VLAN 100 and VLAN
200 to pass through untagged.
<PE1> system-view
[PE1] interface gigabitethernet 1/0/1
[PE1-GigabitEthernet1/0/1] port link-type hybrid
[PE1-GigabitEthernet1/0/1] port hybrid vlan 100 200 untagged
[PE1-GigabitEthernet1/0/1] quit
# Create class A10 and configure the class to match frames from Site 1 with CVLAN 10.
[PE1] traffic classifier A10
[PE1-classifier-A10] if-match customer-vlan-id 10
[PE1-classifier-A10] quit
# Create traffic behavior P100 and add the action of inserting outer VLAN tag 100.
[PE1] traffic behavior P100
[PE1-behavior-P100] nest top-most vlan-id 100
167