1. Configure the routing protocol on devices on the backbone network (PE and P) to
implement interworking and enable MPLS.
2. Use the default tunnel policy to create an LSP and configure the LSP as the tunnel for data
transmission.
3. Enable MPLS L2VPN and create VC connections on the PEs.
4. Configure VLAN mapping of double tags on the sub-interface of the PE1 interface
connected to CE1 and connect the sub-interface to the VLL network.
5. Configure QinQ sub-interfaces on the PE interfaces connected to the switches and connect
the QinQ sub-interfaces to the VLL network.
6. Configure selective QinQ on the switch interfaces connected to CEs.
Data Preparation
To complete the configuration, you need the following data:
l Name of the remote peer of each PE
l VC ID
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 Specify the VLANs that the interfaces of CEs, PEs, and P belong to and set the IP addresses of
the corresponding VLANIF interfaces according to Figure 5-9.
After the configuration, the packets sent from a CE to a switch should contain a VLAN tag.
The configuration procedure is not mentioned.
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 an IGP on the MPLS backbone network. In this example, OSPF is used.
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.
253