The VPN targets of the two IPv6 VPNs on the Hub-PE are advertised by the two Spoke-PE, and
the advertised VPN target is different from the received VPN target.
Configure the IPv6 VPN instances on the Spoke-PE. The imported VPN target for the VPN on
the Spoke-PE is advertised by the Hub-PE.
# Configure Spoke-PE1.
<Spoke-PE1>
system-view
[Spoke-PE1]
ipv6 vpn6-instance vpna
[Spoke-PE1-vpn6-instance-vpna]
route-distinguisher 100:1
[Spoke-PE1-vpn6-instance-vpna]
vpn-target 100:1 export-extcommunity
[Spoke-PE1-vpn6-instance-vpna]
vpn-target 200:1 import-extcommunity
[Spoke-PE1-vpn6-instance-vpna]
quit
[Spoke-PE1]
interface vlanif 50
[Spoke-PE1-Vlanif50]
ipv6 enable
[Spoke-PE1-Vlanif50]
ipv6 binding vpn6-instance vpna
[Spoke-PE1-Vlanif50]
ipv6 address 2001::2 64
[Spoke-PE1-Vlanif50]
quit
# Configure Spoke-PE2.
<Spoke-PE2>
system-view
[Spoke-PE2]
ipv6 vpn6-instance vpna
[Spoke-PE2-vpn6-instance-vpna]
route-distinguisher 100:3
[Spoke-PE2-vpn6-instance-vpna]
vpn-target 100:1 export-extcommunity
[Spoke-PE2-vpn6-instance-vpna]
vpn-target 200:1 import-extcommunity
[Spoke-PE2-vpn6-instance-vpna]
quit
[Spoke-PE2]
interface vlanif 60
[Spoke-PE2-Vlanif60]
ipv6 enable
[Spoke-PE2-Vlanif60]
ipv6 binding vpn6-instance vpna
[Spoke-PE2-Vlanif60]
ipv6 address 2002::2 64
[Spoke-PE2-Vlanif60]
quit
# Configure the Hub-PE.
<Hub-PE>
system-view
[Hub-PE]
ipv6 vpn6-instance vpn_in
[Hub-PE-vpn6-instance-vpn_in]
route-distinguisher 100:21
[Hub-PE-vpn6-instance-vpn_in]
vpn-target 100:1 import-extcommunity
[Hub-PE-vpn6-instance-vpn_in]
quit
[Hub-PE]
ipv6 vpn6-instance vpn_out
[Hub-PE-vpn6-instance-vpn_out]
route-distinguisher 100:22
[Hub-PE-vpn6-instance-vpn_out]
vpn-target 200:1 export-extcommunity
[Hub-PE-vpn6-instance-vpn_out]
quit
[Hub-PE]
interface vlanif 30
[Hub-PE-Vlanif30]
ipv6 enable
[Hub-PE-Vlanif30]
ipv6 binding vpn6-instance vpn_in
[Hub-PE-Vlanif30]
ipv6 address 2003::2 64
[Hub-PE-Vlanif30]
quit
[Hub-PE]
interface vlanif 40
[Hub-PE-Vlanif40]
ipv6 enable
[Hub-PE-Vlanif40]
ipv6 binding vpn6-instance vpn_out
[Hub-PE-Vlanif40]
ipv6 address 2004::2 64
[Hub-PE-Vlanif40]
quit
# Configure IP addresses of the interfaces on the CE devices according to
configuration procedure is not mentioned here.
After the configuration, run the
display ipv6 vpn6-instance verbose
command on the PEs, and
you can view the configuration of the IPv6 VPN instances.
Take the display on Hub-PE as an example.
[Hub-PE]
display ipv6 vpn6-instance verbose
Total VPN6-Instances configured : 2
VPN6-Instance Name and ID : vpn_in, 1
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.
386