1. On the backbone network, configure VPN instances on the PEs connected to CEs and bind
related VPNs to the interfaces connected to the CEs. Then, assign IP addresses to the
interfaces connected to the CEs.
2. Configure OSPF between the PEs to implement interworking between PEs.
3. Configure basic MPLS functions and MPLS LDP and create MPLS LSPs.
4. Configure MP-IBGP for exchanging VPN routing information.
5. Configure EBGP between the CE and the PE to exchange VPN routing information.
6. Configure the QinQ sub-interface to access an L3VPN on the interface connecting the PE
and Switch.
7. Configure selective QinQ on the interface connecting the Switch and CE.
Data Preparation
To complete the configuration, you need the following data:
l IDs of the VLANs that the interfaces belong to, as shown in Figure 5-17
l IP addresses of VLANIF interface, as shown in Figure 5-17
l MPLS LSR-IDs of PEs and P
l RDs of VPN-A and VPN-B
l VPN targets of received and sent routes of VPN-A and VPN-B
l Encapsulation mode and VLAN ID of the sub-interface
Procedure
Step 1 On the interface of the switch, configure selective QinQ and the VLAN whose packets can pass
through the interface.
# 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-vlan200] 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 20 stack-vlan 200
[Switch2-GigabitEthernet1/0/0] quit
# Configure Switch3.
[Switch3] vlan 100
[Switch3-vlan100] quit
[Switch3] interface gigabitethernet 2/0/0
[Switch3-GigabitEthernet2/0/0] port hybrid tagged vlan 100
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.
316