Figure 60 Network diagram
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 trunk port and assign it to VLAN 100.
<PE1> system-view
[PE1] interface ethernet 1/0/1
[PE1-Ethernet1/0/1] port link-type trunk
[PE1-Ethernet1/0/1] port trunk permit vlan 100
# Configure VLAN 100 as the PVID for the port.
[PE1-Ethernet1/0/1] port trunk pvid vlan 100
# Enable basic QinQ on the port.
[PE1-Ethernet1/0/1] qinq enable
[PE1-Ethernet1/0/1] quit
•
Configure Ethernet 1/0/2.
# Configure Ethernet 1/0/2 as a trunk port and assign it to VLAN 100 and VLAN 200.
[PE1] interface ethernet 1/0/2
[PE1-Ethernet1/0/2] port link-type trunk
[PE1-Ethernet1/0/2] port trunk permit vlan 100 200
# 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
184