port link-type trunk
 port trunk allow-pass vlan 40
#
interface GigabitEthernet2/0/0
 port link-type trunk
 port trunk allow-pass vlan 50
#
interface LoopBack0
 ip address 4.4.4.9 255.255.255.255
#
ospf 1
 area 0.0.0.0
  network 4.4.4.9 0.0.0.0
  network 30.1.1.0 0.0.0.255
  network 40.1.1.0 0.0.0.255
#
return
l Configuration file of U-PE2
#
 sysname U-PE2
#
 vlan batvh 50 60
#
 mpls lsr-id 5.5.5.9
 mpls
#
 mpls l2vpn
#
pw-template pwt
 peer-address 3.3.3.9
#
mpls ldp
#
interface Vlanif50
 ip address 40.1.1.2 255.255.255.0
 mpls
 mpls ldp
#
interface Vlanif60
 mpls static-l2vc pw-template pwt 100 transmit-vpn-label 200 receive-vpn-label 
200
#
interface GigabitEthernet1/0/0
 port link-type trunk
 port trunk allow-pass vlan 50
#
interface GigabitEthernet2/0/0
 port link-type trunk
 port trunk allow-pass vlan 60
#
interface LoopBack0
 ip address 5.5.5.9 255.255.255.255
#
ospf 1
 area 0.0.0.0
  network 5.5.5.9 0.0.0.0
  network 40.1.1.0 0.0.0.255
#
return
l Configuration file of CE2
#
 sysname CE2
#
 vlan batch 60
#
interface Vlanif60
 ip address 100.1.1.2 255.255.255.0
#
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 6 PWE3 Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
601