158
Figure 53 Network diagram
Configuration procedure
IMPORTANT:
Make sure that you have configured the devices in the service provider network to allow QinQ
packets to pass through.
1.
Configure PE 1:
{
Configure Ethernet 1/0/1:
# Configure Ethernet 1/0/1 as a hybrid port to permit frames of VLAN 100 and VLAN 200 to
pass through untagged.
<PE1> system-view
[PE1] interface ethernet 1/0/1
[PE1-Ethernet1/0/1] port link-type hybrid
[PE1-Ethernet1/0/1] port hybrid vlan 100 200 untagged
# Configure the port to tag VLAN 10 frames with outer VLAN ID 100.
[PE1-Ethernet1/0/1] qinq vid 100
[PE1-Ethernet1/0/1-vid-100] raw-vlan-id inbound 10
[PE1-Ethernet1/0/1-vid-100] quit
# Configure the port to tag VLAN 20 frames with outer VLAN ID 200.
[PE1-Ethernet1/0/1] qinq vid 200
[PE1-Ethernet1/0/1-vid-200] raw-vlan-id inbound 20
[PE1-Ethernet1/0/1-vid-200] quit
[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 in the outer VLAN tags to 0x8200.
[PE1-Ethernet1/0/2] quit