6. On PE1, configure VLAN mapping of double tags on the sub-interface connected to CE1
and connect the sub-interface to the VPLS network.
7. On PE2, configure a QinQ sub-interface on the interface connected to Switch2 and connect
the sub-interface to the VPLS network.
8. Configure selective QinQ on the switch interfaces connected to CEs.
Data Preparation
To complete the configuration, you need the following data:
l VSI name and VSI ID
l IP addresses of peers and tunnel policy used for setting up the peer relationship
l Interfaces to which the VSI is bound
l VLAN IDs used in VLAN mapping
l Encapsulation mode of the sub-interfaces and VLANs that the sub-interfaces belong to
Procedure
Step 1 Configure the VLANs that the interfaces belong to according to Figure 5-14.
The configuration procedure is not mentioned.
NOTE
l The AC-side physical interface and PW-side physical interface of a PE cannot be added to the same
VLAN; otherwise, a loop occurs.
l After the configuration, the packets sent from a CE to a switch should contain a VLAN tag.
Step 2 Configure selective QinQ on the interfaces of the switches and specify the VLANs allowed by
the interfaces.
# Configure Switch1.
[Switch1] vlan 100
[Switch1-vlan100] quit
[Switch1] interface gigabitethernet 2/0/0
[Switch1-GigabitEthernet2/0/0] port hybrid tagged vlan 100
[Switch1-GigabitEthernet2/0/0] quit
[Switch1] interface gigabitethernet 1/0/0
[Switch1-GigabitEthernet1/0/0] port hybrid untagged vlan 100
[Switch1-GigabitEthernet1/0/0] port vlan-stacking vlan 10 stack-vlan 100
[Switch1-GigabitEthernet1/0/0] quit
# Configure Switch2.
[Switch2] vlan 200
[Switch2-vlan100] quit
[Switch2] interface gigabitethernet 2/0/0
[Switch2-GigabitEthernet2/0/0] port hybrid tagged vlan 200
[Switch2-GigabitEthernet2/0/0] quit
[Switch2] interface gigabitethernet 1/0/0
[Switch2-GigabitEthernet1/0/0] port hybrid untagged vlan 200
[Switch2-GigabitEthernet1/0/0] port vlan-stacking vlan 10 stack-vlan 200
[Switch2-GigabitEthernet1/0/0] quit
Step 3 Configure the IGP protocol. OSPF is used in this example.
When configuring OSPF, advertise the 32-bit loopback interface addresses (LSR IDs) of PE1,
P, and PE2.
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 5 QinQ Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
288