
[PE1-vpn-instance-vpna-af-ipv4]
vpn-target 111:1 both
[PE1-vpn-instance-vpna-af-ipv4]
quit
[PE1-vpn-instance-vpna]
quit
[PE1]
ip vpn-instance vpnb
[PE1-vpn-instance-vpnb]
ipv4-family
[PE1-vpn-instance-vpnb-af-ipv4]
route-distinguisher 100:2
[PE1-vpn-instance-vpnb-af-ipv4]
vpn-target 222:2 both
[PE1-vpn-instance-vpnb-af-ipv4]
quit
[PE1-vpn-instance-vpnb]
quit
[PE1]
interface ethernet 1/0/0
[PE1-Ethernet1/0/0]
ip binding vpn-instance vpna
[PE1-Ethernet1/0/0]
ip address 10.1.1.2 24
[PE1-Ethernet1/0/0]
quit
[PE1]
interface ethernet 2/0/0
[PE1-Ethernet2/0/0]
ip binding vpn-instance vpnb
[PE1-Ethernet2/0/0]
ip address 10.2.1.2 24
[PE1-Ethernet2/0/0]
quit
# Configure PE2.
[PE2]
ip vpn-instance vpna
[PE2-vpn-instance-vpna]
ipv4-family
[PE2-vpn-instance-vpna-af-ipv4]
route-distinguisher 200:1
[PE2-vpn-instance-vpna-af-ipv4]
vpn-target 111:1 both
[PE2-vpn-instance-vpna-af-ipv4]
quit
[PE2-vpn-instance-vpna]
quit
[PE2]
ip vpn-instance vpnb
[PE2-vpn-instance-vpnb]
ipv4-family
[PE2-vpn-instance-vpnb-af-ipv4]
route-distinguisher 200:2
[PE2-vpn-instance-vpnb-af-ipv4]
vpn-target 222:2 both
[PE2-vpn-instance-vpnb-af-ipv4]
quit
[PE2-vpn-instance-vpnb]
quit
[PE2]
interface ethernet 1/0/0
[PE2-Ethernet1/0/0]
ip binding vpn-instance vpna
[PE2-Ethernet1/0/0]
ip address 10.3.1.2 24
[PE2-Ethernet1/0/0]
quit
[PE2]
interface ethernet 2/0/0
[PE2-Ethernet2/0/0]
ip binding vpn-instance vpnb
[PE2-Ethernet2/0/0]
ip address 10.4.1.2 24
[PE2-Ethernet2/0/0]
quit
# Configure an IP address for the CE interface according to
. Details for the
configuration procedure are not provided here.
After the configuration, check the configuration of VPN instances by running the
display ip
vpn-instance verbose
command on the PEs. Each PE can successfully ping its own CE.
NOTE
When the interfaces on a PE are bound to the same VPN, you need to specify the source IP address when
you use the
ping
command to ping the CE connected to the peer PE. This means that you need to specify
-a
source-ip-address
in the
ping -a
source-ip-address
-vpn-instance
vpn-instance-name
dest-ip-address
command; otherwise, the ping fails.
Use PE1 and CE1 as an example:
[PE1]
display ip vpn-instance verbose
Total VPN-Instances configured : 2
VPN-Instance Name and ID : vpna, 1
Interfaces : Ethernet1/0/0
Address family ipv4
Create date : 2009/01/21 11:30:35
Up time : 0 days, 00 hours, 05 minutes and 19 seconds
Route Distinguisher : 100:1
Export VPN Targets : 111:1
Import VPN Targets : 111:1
Label Policy : label per route
The diffserv-mode Information is : uniform
The ttl-mode Information is : pipe
Huawei AR1200 Series Enterprise Routers
Configuration Guide - VPN
3 BGP MPLS IP VPN Configuration
Issue 01 (2012-04-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
155