mpls ldp
#
interface Vlanif40
 ip address 100.2.1.2 255.255.255.0
 mpls
 mpls ldp
#
interface Vlanif50
 l2 binding vsi v123
#
interface GigabitEthernet1/0/0
 port hybrid pvid vlan 40
 port hybrid tagged vlan 40
#
interface GigabitEthernet2/0/0
 port hybrid pvid vlan 50
 port hybrid tagged vlan 50
#
interface LoopBack1
 ip address 3.3.3.9 255.255.255.255
#
ospf 1
 area 0.0.0.0
  network 100.2.1.0 0.0.0.255
  network 3.3.3.9 0.0.0.0
#
return
l Configuration file of CE1
#
 sysname CE1
#
 vlan batch 10
#
interface Vlanif10
 ip address 10.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/0
 port link-type trunk
 port trunk allow-pass vlan 10
#
return
l Configuration file of CE2
#
 sysname CE2
#
 vlan batch 20
#
interface Vlanif20
 ip address 10.1.1.2 255.255.255.0
#
interface GigabitEthernet1/0/0
 port link-type trunk
 port trunk allow-pass vlan 20
#
return
l Configuration file of CE3
#
 sysname CE3
#
 vlan batch 50
#
interface Vlanif50
 ip address 10.1.1.3 255.255.255.0
#
interface GigabitEthernet1/0/0
 port link-type trunk
 port trunk allow-pass vlan 50
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 7 VPLS Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
760