#
ip vpn-instance vpn1
 route-distinguisher 100:3
 vpn-target 111:1 export-extcommunity
 vpn-target 111:1 import-extcommunity
#
 mpls lsr-id 3.3.3.3
 mpls
  label advertise non-null
#
mpls ldp
#
interface Vlanif 30
 ip address 100.2.1.2 255.255.255.252
 mpls
 mpls ldp
#
interface Vlanif 40
 ip binding vpn-instance vpn1
 ip address 10.2.1.2 255.255.255.252
#
interface GigabitEthernet1/0/0
 port hybrid pvid vlan 30
 port hybrid untagged vlan 30
#
interface GigabitEthernet2/0/0
 port hybrid pvid vlan 40
 port hybrid untagged vlan 40
#
interface LoopBack1
 ip address 3.3.3.3 255.255.255.255
#
bgp 100
 peer 1.1.1.1 as-number 100 
 peer 1.1.1.1 connect-interface LoopBack1
 #
 ipv4-family unicast
  undo synchronization
  peer 1.1.1.1 enable
#
 ipv4-family vpnv4
  policy vpn-target
  peer 1.1.1.1 enable
#
 ipv4-family vpn-instance vpn1
  peer 10.2.1.1 as-number 65410
  import-route direct
#
ospf 1
 area 0.0.0.0
  network 100.2.1.0 0.0.0.3
  network 3.3.3.3 0.0.0.0
#
Return
l Configuration file of CE
#
 sysname CE
#
 vlan batch 20 40 50
#
interface Vlanif20
  ip address 10.1.1.1 255.255.255.252
#
interface Vlanif40
  ip address 10.2.1.1 255.255.255.252
#
interface Vlanif50
  ip address 10.3.1.1 255.255.255.0
#
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.
298