# Configure PE2.
[PE2]
ip vpn-instance vpna
[PE2-vpn-instance-vpna]
route-distinguisher 200:1
[PE2-vpn-instance-vpna]
vpn-target 111:1 both
[PE2-vpn-instance-vpna]
quit
[PE2]
ip vpn-instance vpnb
[PE2-vpn-instance-vpnb]
route-distinguisher 200:2
[PE2-vpn-instance-vpnb]
vpn-target 222:2 both
[PE2-vpn-instance-vpnb]
quit
[PE2]
interface vlanif 40
[PE2-Vlanif40]
ip binding vpn-instance vpna
[PE2-Vlanif40]
ip address 10.3.1.2 24
[PE2-Vlanif40]
quit
[PE2]
interface vlanif 50
[PE2-Vlanif50]
ip binding vpn-instance vpnb
[PE2-Vlanif50]
ip address 10.4.1.2 24
[PE2-Vlanif50]
quit
# Configure IP addresses of the interfaces on the CEs according to
. The configuration
procedure is not given here.
After the configuration, run the
display ip vpn-instance verbose
command on the PEs, and you
can see the configuration of the VPN instances. The PEs can ping the connected CEs
successfully.
NOTE
If multiple interfaces on a PE are bound to the same VPN, you must specify the source address when you
run the
ping -vpn-instance
command to ping the CE connected to the peer PE. That is, specify
-a
source-
ip-address
in the
ping -vpn-instance
vpn-instance-name
-a
source-ip-address destination-address
command. Otherwise, the ping operation may fail.
Take PE1 and CE1 for example.
[PE1]
display ip vpn-instance verbose
Total VPN-Instances configured : 2
VPN-Instance Name and ID : vpna, 1
Create date : 2008/11/24 16:28:27 UTC-08:00
Up time : 0 days, 00 hours, 11 minutes and 25 seconds
Route Distinguisher : 100:1
Export VPN Targets : 111:1
Import VPN Targets : 111:1
Label policy : label per route
Log Interval : 5
Interfaces : Vlanif10
VPN-Instance Name and ID : vpnb, 2
Create date : 2008/11/24 16:30:37 UTC-08:00
Up time : 0 days, 00 hours, 09 minutes and 15 seconds
Route Distinguisher : 100:2
Export VPN Targets : 222:2
Import VPN Targets : 222:2
Label policy : label per route
Log Interval : 5
Interfaces : Vlanif20
[PE1]
ping -vpn-instance vpna 10.1.1.1
PING 10.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 10.1.1.1: bytes=56 Sequence=1 ttl=255 time=5 ms
Reply from 10.1.1.1: bytes=56 Sequence=2 ttl=255 time=3 ms
Reply from 10.1.1.1: bytes=56 Sequence=3 ttl=255 time=3 ms
Reply from 10.1.1.1: bytes=56 Sequence=4 ttl=255 time=3 ms
Reply from 10.1.1.1: bytes=56 Sequence=5 ttl=255 time=16 ms
--- 10.1.1.1 ping statistics ---
5 packet(s) transmitted
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
3 BGP MPLS IP VPN Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
179