#
return
l Configuration file of S-PE
#
 sysname S-PE
#
 vlan batch 30 40
#
 mpls lsr-id 3.3.3.9
 mpls
#
 mpls l2vpn
#
 mpls switch-l2vc 5.5.5.9 100 trans 200 recv 200 between 1.1.1.9 100 trans 100 
recv 100 encapsulation vlan
# 
mpls ldp
#
interface Vlanif30
 ip address 20.1.1.2 255.255.255.0
 mpls
 mpls ldp
#
interface Vlanif40
 ip address 30.1.1.1 255.255.255.0
 mpls
 mpls ldp
#
interface GigabitEthernet1/0/0
 port link-type trunk
 port trunk allow-pass vlan 30
#
interface GigabitEthernet2/0/0
 port link-type trunk
 port trunk allow-pass vlan 40
#
interface LoopBack0
 ip address 3.3.3.9 255.255.255.255
#
ospf 1
 area 0.0.0.0
  network 20.1.1.0 0.0.0.255
  network 30.1.1.0 0.0.0.255
  network 3.3.3.9 0.0.0.0
#
return
l Configuration file of P2
#
 sysname P2
#
 vlan batch 40 50
#
 mpls lsr-id 4.4.4.9
 mpls
#
mpls ldp
#
interface Vlanif40
 ip address 30.1.1.2 255.255.255.0
 mpls
 mpls ldp
#
interface Vlanif50
 ip address 40.1.1.1 255.255.255.0
 mpls
 mpls ldp
#
interface GigabitEthernet1/0/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.
600