199
Task
Command
Display QinQ-enabled ports.
display qinq
[
interface interface-type
interface-number
]
QinQ configuration examples
Basic QinQ configuration example
Network requirements
As shown in
:
•
The service provider assigns VLAN 100 to Company A's VLANs 10 through 70.
•
The service provider assigns VLAN 200 to Company B's VLANs 30 through 90.
•
The devices between PE 1 and PE 2 in the service provider network use a TPID value of
0x8200.
Configure QinQ on PE 1 and PE 2 to transmit traffic in VLANs 100 and 200 for Company A and
Company B, respectively.
For the QinQ frames to be identified correctly, set the SVLAN TPID to 0x8200 on the service
provider-side ports of PE 1 and PE 2.
Figure 57 Network diagram
Configuration procedure
1.
Configure PE 1:
# Configure GigabitEthernet 1/0/1 as a trunk port, and assign it to VLAN 100.
<PE1> system-view
[PE1] interface gigabitethernet 1/0/1
[PE1-GigabitEthernet1/0/1] port link-type trunk
[PE1-GigabitEthernet1/0/1] port trunk permit vlan 100
CE 1
Company A
Site 1
PE 1
Service provider network
VLANs 100 and 200
TPID = 0x8200
PE 2
GE1/0/1
GE1/0/2
GE1/0/1
GE1/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
GE1/0/3
GE1/0/3
CE 4