Simple selective QinQ configuration example
Network requirements
As shown in
•
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 61 Network diagram
Site 1
VLAN 10
Configuration procedure
NOTE:
Be sure that you have configured the switches in the service provider network to allow QinQ packets to
pass through.
Configure PE 1.
1.
•
Configure Ethernet 1/0/1.
# Configure Ethernet 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 ethernet 1/0/1
[PE1-Ethernet1/0/1] port link-type hybrid
[PE1-Ethernet1/0/1] port hybrid vlan 100 200 untagged
[PE1-Ethernet1/0/1] quit
# Create class A10 and configure the class to match frames from Site 1 with CVLAN 10.
[PE1] traffic classifier A10
Figure
61:
PE 1
Eth1/0/2
Eth1/0/1
CE 1
VLAN 20
VLANs 100, 200
TPID = 0x8200
Public network
VLAN 10
186
PE 2
Eth1/0/2
Eth1/0/1
CE 2
VLAN 20
Site 2