
194
[PE1] interface ethernet 1/0/2
[PE1-Ethernet1/0/2] port link-type trunk
[PE1-Ethernet1/0/2] port trunk permit vlan 10 to 50
# Set the TPID value in the outer VLAN tag to 0x8200 on the port.
[PE1-Ethernet1/0/2] qinq ethernet-type service-tag 8200
[PE1-Ethernet1/0/2] quit
2.
Configure PE 2:
{
Configure Ethernet 1/0/1:
# Configure Ethernet 1/0/1 as a trunk port and assign it to VLANs 10 through 50.
<PE2> system-view
[PE2] interface ethernet 1/0/1
[PE2-Ethernet1/0/1] port link-type trunk
[PE2-Ethernet1/0/1] port trunk permit vlan 10 to 50
# Enable basic QinQ on the port.
[PE2-Ethernet1/0/1] qinq enable
# Configure the port to transparently transmit frames from VLANs 10 through 50.
[PE2-Ethernet1/0/1] qinq transparent-vlan 10 to 50
[PE2-Ethernet1/0/1] quit
{
Configure Ethernet 1/0/2:
# Configure Ethernet 1/0/2 as a trunk port and assign it to VLANs 10 through 50.
[PE2] interface ethernet 1/0/2
[PE2-Ethernet1/0/2] port link-type trunk
[PE2-Ethernet1/0/2] port trunk permit vlan 10 to 50
# Set the TPID value in the outer VLAN tag to 0x8200 on the port.
[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 10 through VLAN 50 to pass through. (Details
not shown.)
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.