[PE2-GigabitEthernet4/1/2] qinq ethernet-type 8200
[PE2-GigabitEthernet4/1/2] quit
Configure GigabitEthernet 4/1/3.
•
# Configure GigabitEthernet 4/1/3 as a trunk port and assign it to VLAN 100 and VLANs 10 through
70.
[PE2] interface gigabitethernet 4/1/3
[PE2-GigabitEthernet4/1/3] port link-type trunk
[PE2-GigabitEthernet4/1/3] port trunk permit vlan 100 10 to 70
# Configure VLAN 100 as the default VLAN ID for the port.
[PE2-GigabitEthernet4/1/3] port trunk pvid vlan 100
# Enable basic QinQ on the port.
[PE2-GigabitEthernet4/1/3] qinq enable
[PE2-GigabitEthernet4/1/3] quit
Configuration on third-party devices
3.
On the third-party devices between PE 1 and PE 2, configure the port connecting to PE 1 and that
connecting to PE 2 to allow tagged frames of VLAN 100 and VLAN 200 to pass through.
Selective QinQ configuration example
Network requirements
As shown in
•
PE A and PE B are service provider network access devices.
•
CE A, CE B, CE C, and CE D are customer network access devices.
•
PE A and PE B are interconnected through a trunk port, which permits the frames of VLAN 1000,
VLAN 2000, and VLAN 3000 to pass through.
Third-party devices are deployed between PE A and PE B, with a TPID value of 0x8200.
•
Make configurations to satisfy the following requirements:
VLAN 10 of CE A and CE B can intercommunicate across VLAN 1000 on the public network.
•
•
VLAN 20 of CE A and CE C can intercommunicate across VLAN 2000 on the public network.
•
Frames of the VLANs other than VLAN 10 and VLAN 20 of CE A can be forwarded to CE D across
VLAN 3000 on the public network.
Figure
52,
154