#
interface LoopBack1
 ip address 1.1.1.9 255.255.255.255
 isis enable 1
#
bgp 100
 graceful-restart
 peer 3.3.3.9 as-number 100
 peer 3.3.3.9 connect-interface LoopBack1
 #
 ipv4-family vpnv4
  policy vpn-target
  peer 3.3.3.9 enable
#
 ipv4-family vpn-instance vpn1
  peer 10.1.1.1 as-number 65410
  import-route direct
#
return
l Configuration file of the P device
#
 sysname P
#
 vlan batch 20 30
#
 mpls lsr-id 2.2.2.9
 mpls
#
mpls ldp
 graceful-restart
#
isis 1
 network-entity 10.0000.0000.0002.00
 graceful-restart
#
interface Vlanif 20
 ip address 100.1.1.2 255.255.255.252
 isis enable 1
 mpls
 mpls ldp
#
interface Vlanif 30
 ip address 100.2.1.1 255.255.255.252
 isis enable 1
 mpls
 mpls ldp
#
interface GigabitEthernet1/0/0
 port link-type trunk
 port trunk allow-pass vlan 20
#
interface GigabitEthernet2/0/0
 port link-type trunk
 port trunk allow-pass vlan 30
#
interface LoopBack1
 ip address 2.2.2.9 255.255.255.255
 isis enable 1
#
return
l Configuration file of PE2
#
 sysname PE2
#
 vlan batch 30 40
#
ip vpn-instance vpn1
 route-distinguisher 100:2
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.
308