
100
Figure 35
Network diagram
Configuration procedure
NOTE:
Make sure that the devices in the service provider network have been configured to allow QinQ packets to
pass through.
1.
Configure PE 1:
# Configure GigabitEthernet 3/1/1 as a trunk port and assign it to VLAN 100 and VLANs 10
through 70.
<PE1> system-view
[PE1] interface GigabitEthernet 3/1/1
[PE1-GigabitEthernet3/1/1] port link-type trunk
[PE1-GigabitEthernet3/1/1] port trunk permit vlan 100 10 to 70
# Configure VLAN 100 as the PVID for the port.
[PE1-GigabitEthernet3/1/1] port trunk pvid vlan 100
# Enable basic QinQ on the port.
[PE1-GigabitEthernet3/1/1] qinq enable
[PE1-GigabitEthernet3/1/1] quit
# Configure GigabitEthernet 3/1/2 as a trunk port and assign it to VLAN 100 and VLAN 200.
[PE1] interface GigabitEthernet 3/1/2
[PE1-GigabitEthernet3/1/2] port link-type trunk
[PE1-GigabitEthernet3/1/2] port trunk permit vlan 100 200
# Set the TPID value in the outer VLAN tag to 0x8200 on the port.
[PE1-GigabitEthernet3/1/2] qinq ethernet-type 8200
[PE1-GigabitEthernet3/1/2] quit
# Configure GigabitEthernet 3/1/3 as a trunk port and assign it to VLAN 200 and VLANs 30
through 90.