vpn-target 111:1 export-extcommunity
 vpn-target 111:1 import-extcommunity
#
 mpls lsr-id 3.3.3.9
 mpls
#
mpls ldp
 graceful-restart
#
isis 1
 graceful-restart
 network-entity 10.0000.0000.0003.00
#
interface Vlanif 30
 ip address 100.2.1.2 255.255.255.252
 isis enable 1
 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 link-type trunk
 port trunk allow-pass vlan 30
#
interface GigabitEthernet2/0/0
 port link-type trunk
 port trunk allow-pass vlan 40
#
interface LoopBack1
 ip address 3.3.3.9 255.255.255.255
 isis enable 1
#
bgp 100
 graceful-restart
 peer 1.1.1.9 as-number 100
 peer 1.1.1.9 connect-interface LoopBack1
 #
 ipv4-family vpnv4
  policy vpn-target
  peer 1.1.1.9 enable
#
 ipv4-family vpn-instance vpn1
  import-route ospf 2
  import-route direct
#
ospf 2 vpn-instance vpn1
 opaque-capability enable
 graceful-restart
 import-route bgp
 area 0.0.0.0
  network 10.2.1.0 0.0.0.3
#
return
l Configuration file of CE1
#
 sysname CE1
#
 vlan batch 10
#
interface Vlanif 10
 ip address 10.1.1.1 255.255.255.252
#
interface GigabitEthernet1/0/0
 port link-type trunk
 port trunk allow-pass vlan 10
#
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.
309