ip binding vpn-instance vpn1
 ip address 50.1.1.2 255.255.255.0
#
interface Vlanif40
 ip address 110.1.1.1 255.255.255.0
 mpls
 mpls ldp
#
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 1.1.1.9 255.255.255.255
#
interface Tunnel1/0/0
 ip binding vpn-instance vpn1
 ip address 2.2.2.2 255.255.255.0
 tunnel-protocol gre
 source 50.1.1.2
 destination 30.1.1.1
 isis enable 50
#
bgp 100
 peer 3.3.3.9 as-number 100
 peer 3.3.3.9 connect-interface LoopBack1
 #
 ipv4-family unicast
  undo synchronization
  peer 3.3.3.9 enable
 #
 ipv4-family vpnv4
  policy vpn-target
  peer 3.3.3.9 enable
 #
 ipv4-family vpn-instance vpn1
  import-route direct
  import-route isis 50
#
ospf 10
 area 0.0.0.0
  network 1.1.1.9 0.0.0.0
  network 110.1.1.0 0.0.0.255
#
ospf 20 
 area 0.0.0.0
  network 50.1.1.0 0.0.0.255
#
return
l Configuration file of PE2
#
 sysname PE2
#
 vlan batch 40 50
#
 ip vpn-instance vpn1
 route-distinguisher 200:1
 vpn-target 111:1 export-extcommunity
 vpn-target 111:1 import-extcommunity
#
 mpls lsr-id 3.3.3.9
 mpls
  lsp-trigger all
#
mpls ldp
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 2 GRE Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
90