peer 2.2.2.9 as-number 100
 peer 2.2.2.9 connect-interface LoopBack1
 #
 ipv4-family unicast
  undo synchronization
  peer 2.2.2.9 enable
 #
 ipv6-family vpnv6
  policy vpn-target
  peer 2.2.2.9 enable
#
 ipv6-family vpn6-instance vpna
  peer 2001::1 as-number 65410
  import-route direct
#
ospf 1
 area 0.0.0.0
  network 10.1.1.0 0.0.0.255
  network 1.1.1.9 0.0.0.0
#
return
l Configuration file of Spoke-PE2
#
 sysname Spoke-PE2
#
 ipv6
#
 vlan batch 20 60
#
ipv6 vpn6-instance vpna
 route-distinguisher 100:3
 vpn-target 100:1 export-extcommunity
 vpn-target 200:1 import-extcommunity
#
 mpls lsr-id 3.3.3.9
 mpls
#
mpls ldp
#
interface Vlanif20
 ip address 11.1.1.1 255.255.255.0
 mpls
 mpls ldp
#
interface Vlanif60
ipv6 enable
 ipv6 binding vpn6-instance vpna
 ipv6 address 2002::2/64
#
interface GigabitEthernet1/0/0
 port hybrid pvid vlan 60
 port hybrid untagged vlan 60
#
interface GigabitEthernet2/0/0
 port hybrid pvid vlan 20
 port hybrid untagged vlan 20
#
interface LoopBack1
 ip address 3.3.3.9 255.255.255.255
#
bgp 100
 peer 2.2.2.9 as-number 100
 peer 2.2.2.9 connect-interface LoopBack1
 #
 ipv4-family unicast
  undo synchronization
  peer 2.2.2.9 enable
 #
 ipv6-family vpnv6
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 4 BGP MPLS IPv6 VPN Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
405