#
return
l Configuration file of PE2
#
 sysname PE2
#
vlan batch 40 50 60
#
ip vpn-instance vpna
 route-distinguisher 200:1
 vpn-target 111:1 export-extcommunity
 vpn-target 111:1 import-extcommunity
#
ip vpn-instance vpnb
 route-distinguisher 200:2
 vpn-target 222:2 export-extcommunity
 vpn-target 222:2 import-extcommunity
#
 mpls lsr-id 3.3.3.9
 mpls
#
mpls ldp
#
interface Vlanif40
 ip binding vpn-instance vpna
 ip address 10.3.1.2 255.255.255.0
#
interface Vlanif50
 ip binding vpn-instance vpnb
 ip address 10.4.1.2 255.255.255.0
#
interface Vlanif60
 ip address 172.2.1.2 255.255.255.0
 mpls
 mpls ldp
#
interface GigabitEthernet1/0/0
 port hybrid pvid vlan 40
 port hybrid untagged vlan 40
# 
interface GigabitEthernet2/0/0
 port hybrid pvid vlan 50
 port hybrid untagged vlan 50
# 
interface GigabitEthernet3/0/0
 port hybrid pvid vlan 60
 port hybrid untagged vlan 60
# 
 
interface LoopBack1
 ip address 3.3.3.9 255.255.255.255
#
bgp 100
 peer 1.1.1.9 as-number 100
 peer 1.1.1.9 connect-interface LoopBack1
 #
 ipv4-family unicast
  undo synchronization
  peer 1.1.1.9 enable
 #
 ipv4-family vpnv4
  policy vpn-target
  peer 1.1.1.9 enable 
 #
 ipv4-family vpn-instance vpna
  peer 10.3.1.1 as-number 65430
  import-route direct
 #
 ipv4-family vpn-instance vpnb
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
184