202
Figure 53
Network diagram
Configuration procedure
Configuring PE 1
1.
Configure Ten-GigabitEthernet 1/0/1:
# Configure the port as a trunk port, and assign it to VLAN 100 and VLANs 10 through 70.
<PE1> system-view
[PE1] interface ten-gigabitethernet 1/0/1
[PE1-Ten-GigabitEthernet1/0/1] port link-type trunk
[PE1-Ten-GigabitEthernet1/0/1] port trunk permit vlan 100 10 to 70
# Configure VLAN 100 as the PVID for the port.
[PE1-Ten-GigabitEthernet1/0/1] port trunk pvid vlan 100
# Enable QinQ on the port.
[PE1-Ten-GigabitEthernet1/0/1] qinq enable
[PE1-Ten-GigabitEthernet1/0/1] quit
2.
Configure Ten-GigabitEthernet 1/0/2:
# Configure the port as a trunk port, and assign it to VLANs 100 and 200.
[PE1] interface ten-gigabitethernet 1/0/2
[PE1-Ten-GigabitEthernet1/0/2] port link-type trunk
[PE1-Ten-GigabitEthernet1/0/2] port trunk permit vlan 100 200
# Set the TPID value in the SVLAN tags to 0x8200 on the port.
[PE1-Ten-GigabitEthernet1/0/2] qinq ethernet-type service-tag 8200
[PE1-Ten-GigabitEthernet1/0/2] quit
3.
Configure Ten-GigabitEthernet 1/0/3:
# Configure the port as a trunk port, and assign it to VLAN 200 and VLANs 30 through 90.
[PE1] interface ten-gigabitethernet 1/0/3
CE 1
Company A
Site 1
PE 1
Service provider network
VLANs 100 and 200
TPID = 0x8200
PE 2
XGE1/0/1
XGE1/0/2
XGE1/0/1
XGE1/0/2
CE 2
VLANs 10 to 70
VLANs 30 to 90
Site 3
Company B
CE 3
Company B
Site 4
VLANs 30 to 90
Site 2
Company A
VLANs 10 to 70
XGE1/0/3
XGE1/0/3
CE 4