195
Figure 66
Network diagram
Configuration procedure
IMPORTANT:
Make sure that you have configured the switches 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
[PE1-Ethernet1/0/1] quit
# Create class
A10
and configure the class to match frames from Site 1 with CVLAN 10.
[PE1] traffic classifier A10
[PE1-classifier-A10] if-match customer-vlan-id 10
[PE1-classifier-A10] quit
# Create traffic behavior
P100
and add the action of inserting outer VLAN tag 100.
[PE1] traffic behavior P100
[PE1-behavior-P100] nest top-most vlan-id 100
[PE1-behavior-P100] quit
# Create class
A20
and configure the class to match frames with CVLAN 20. Create traffic
behavior
P200
and add the action of inserting outer VLAN tag 200.
[PE1] traffic classifier A20
[PE1-classifier-A20] if-match customer-vlan-id 20
[PE1-classifier-A20] quit
[PE1] traffic behavior P200