l Configuration file of CE4
#
sysname CE4
#
vlan batch 20
#
interface Vlanif20
ip address 10.4.1.1 255.255.255.0
#
interface GigabitEthernet1/0/0
port hybrid pvid vlan 20
port hybrid tagged vlan 20
#
bgp 65440
peer 10.4.1.2 as-number 100
#
ipv4-family unicast
undo synchronization
import-route direct
peer 10.4.1.2 enable
#
return
5.12.17 Example for Configuring the QinQ Sub-interface to Access
an L3VPN
Networking Requirements
As shown in Figure 5-17, CE1 and CE3 belong to VPN-A and CE2 and CE4 belong to VPN-
B. The VPN target of VPN-A is 111:1, and VPN target of VPN-B is 222:2. The users in different
VPNs cannot communicate with each other.
Switch1 is connected to CE1 and PE1.
Switch2 is connected to CE2 and PE2.
Switch3 is connected to CE3 and PE3.
Switch4 is connected to CE4 and PE4.
Selective QinQ is configured on the interface connecting the Switch and CE to add the outer
VLAN tag specified by the carrier to packets sent from the CE.
When the Switch is connected to multiple CEs, packets with the VLAN tag sent from different
CEs are added with the same outer VLAN tag. This saves public VLANs.
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.
314