#
mpls l2vpn
#
vsi a2 static
pwsignal ldp
vsi-id 2
peer 1.1.1.9
#
mpls ldp
#
mpls ldp remote-peer 1.1.1.9
remote-ip 1.1.1.9
#
interface Vlanif30
ip address 169.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/0
port hybrid pvid vlan 30
port hybrid tagged vlan 30
#
interface GigabitEthernet2/0/0
#
interface GigabitEthernet2/0/0.1
control-vid 2000 dot1q-termination
dot1q termination vid 20
l2 binding vsi a2
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 169.1.1.0 0.0.0.255
#
return
5.12.14 Example for Connecting a Sub-interface Enabled with
Double-Tag VLAN Mapping to a VPLS Network
Networking Requirements
As shown in Figure 5-14, VPLS is enabled on PE1 and PE2. CE1 is connected to Switch1
through PE1, and CE2 is connected to Switch2 through PE2. CE1 and CE2 belong to the same
VSI. LDP is used as the VPLS signaling protocol to set up the PW and Martini VPLS is
configured to enable CE1 and CE2 to communicate with each other.
Selective QinQ is configured on the interfaces connected to CEs so that the switches add the
VLAN tags specified by the carrier to the packets sent from CEs.
When Switch1 and Switch2 add different VLAN tags to packets, configure VLAN mapping of
double tags on a sub-interface and connect the sub-interface to the VLL. Then CE1 and CE2
can communicate with each other.
When a switch is connected to multiple CEs, the switch can add different VLAN tags to the
packets from different CEs, that is, packets with different VLAN tags. This saves VLAN IDs
on the public network.
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.
286