[PE3]
ip vpn-instance vpn1
[PE3-vpn-instance-vpn1]
route-distinguisher 100:3
[PE3-vpn-instance-vpn1]
vpn-target 1:1 both
[PE3-vpn-instance-vpn1]
quit
# Bind the interfaces connected to CEs to the corresponding VPNs and assign IP addresses to
these interfaces.
[PE3]
interface vlanif 103
[PE3-Vlanif103]
ip binding vpn-instance vpn1
[PE3-Vlanif103]
ip address 10.3.1.1 30
[PE3-Vlanif103]
quit
# Configure PE4.
# Create a VPN instance and specify the RD and VPN target. The VPN targets of PE4 and the
MP-BGP peer PE to implement mutual access of sites on the same VPN.
[PE4]
ip vpn-instance vpn1
[PE4-vpn-instance-vpn1]
route-distinguisher 100:4
[PE4-vpn-instance-vpn1]
vpn-target 1:1 both
[PE4-vpn-instance-vpn1]
quit
# Bind the interfaces connected to CEs to the corresponding VPNs and assign IP addresses to
these interfaces.
[PE4]
interface vlanif 104
[PE4-Vlanif104]
ip binding vpn-instance vpn1
[PE4-Vlanif104]
ip address 10.4.1.1 30
[PE4-Vlanif104]
quit
# Assign IP addresses to the interfaces on CEs according to
. The configuration
details are not mentioned here.
# After the configuration, run the
display ip vpn-instance verbose
command on PEs, and you
can view configuration results of VPN instances.
For example, information about PE1 is displayed as follows:
<PE1>
display ip vpn-instance verbose
Total VPN-Instances configured : 1
VPN-Instance Name and ID : vpn1, 1
Create date : 2006/10/14 18:12:43 UTC-08:00
Up time : 0 days, 01 hours, 56 minutes and 16 seconds
Route Distinguisher : 100:1
Export VPN Targets : 1:1
Import VPN Targets : 1:1
Label policy : label per route
Log Interval : 5
Interfaces : Vlanif101
Step 5
Configure EBGP between PEs and CEs to import VPN routes.
# Configure CE1.
# Enable BGP, specify PE1 and PE2 as EBGP peers, and import direct routes.
[CE1]
bgp 65410
[CE1-bgp]
peer 10.1.1.2 as-number 100
[CE1-bgp]
peer 10.2.1.2 as-number 100
[CE1-bgp]
import-route direct
[CE1-bgp]
quit
# Configure PE1.
# Enable BGP.
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.
281