#
ipv4-family unicast
undo synchronization
peer 4.4.4.9 enable
#
ipv6-family vpnv6
policy vpn-target
peer 4.4.4.9 enable
#
ipv6-family vpn6-instance vpn1
peer 2003::1 as-number 100
import-route direct
#
ospf 1
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 162.1.1.0 0.0.0.255
#
return
l
Configuration file of PE2
#
sysname PE2
#
ipv6
#
vlan batch 10 22
#
ipv6 vpn6-instance vpn1
route-distinguisher 200:1
vpn-target 2:2 export-extcommunity
vpn-target 2:2 import-extcommunity
#
mpls lsr-id 4.4.4.9
mpls
#
mpls ldp
#
interface Vlanif10
ipv6 enable
ipv6 binding vpn6-instance vpn1
ipv6 address 2002::2/64
#
interface Vlanif22
ip address 162.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/0
port link-type trunk
port trunk allow-pass vlan 22
#
interface GigabitEthernet2/0/0
port link-type trunk
port trunk allow-pass vlan 10
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
#
bgp 200
peer 3.3.3.9 as-number 200
peer 3.3.3.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 3.3.3.9 enable
#
ipv6-family vpnv6
policy vpn-target
peer 3.3.3.9 enable
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.
418