#
return
l Configuration file of P
#
 sysname P
#
 vlan batch 30 40
#
 mpls lsr-id 2.2.2.9
 mpls
#
mpls ldp
#
interface Vlanif30
 ip address 100.1.1.2 255.255.255.0
 mpls
 mpls ldp
#
interface Vlanif40
 ip address 100.1.2.1 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
 port hybrid pvid vlan 40
 port hybrid tagged vlan 40
#
interface LoopBack1
 ip address 2.2.2.9 255.255.255.255
#
ospf 1
 area 0.0.0.0
  network 2.2.2.9 0.0.0.0
  network 100.1.1.0 0.0.0.255
  network 100.1.2.0 0.0.0.255
#
return
l Configuration file of SPE2
#
 sysname SPE2
#
 vlan batch 40 50
#
 mpls lsr-id 3.3.3.9
 mpls
#
 mpls l2vpn
#
vsi V100 static
 pwsignal ldp
  vsi-id 100
  peer 1.1.1.9
  peer 5.5.5.9 static-upe tran 100 recv 100
#
mpls ldp
#
 mpls ldp remote-peer 1.1.1.9
 remote-ip 1.1.1.9
#
interface Vlanif40
 ip address 100.1.2.2 255.255.255.0
 mpls
 mpls ldp
#
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.
770