[PE1]
bgp 100
# In the BGP-VPN instance view, specify CEs as EBGP peers and import direct routes.
[PE1-bgp]
ipv4-family vpn-instance vpn1
[PE1-bgp-vpn1]
peer 10.1.1.1 as-number 65410
[PE1-bgp-vpn1]
import-route direct
[PE1-bgp-vpn1]
quit
# Configure PE2.
# Enable BGP.
[PE2]
bgp 100
# In the BGP-VPN instance view, specify CEs as EBGP peers and import direct routes.
[PE2-bgp]
ipv4-family vpn-instance vpn1
[PE2-bgp-vpn1]
peer 10.2.1.1 as-number 65410
[PE2-bgp-vpn1]
import-route direct
[PE2-bgp-vpn1]
quit
# Configure CE2.
# Enable BGP, specify PE3 and PE4 as EBGP peers, and import direct routes.
[CE2]
bgp 65420
[CE2-bgp]
peer 10.3.1.1 as-number 100
[CE2-bgp]
peer 10.4.1.1 as-number 100
[CE2-bgp]
import-route direct
[CE2-bgp]
quit
# Configure PE3.
# Enable BGP.
[PE3]
bgp 100
# In the BGP-VPN instance view, specify CEs as EBGP peers and import direct routes.
[PE3-bgp]
ipv4-family vpn-instance vpn1
[PE3-bgp-vpn1]
peer 10.3.1.2 as-number 65420
[PE3-bgp-vpn1]
import-route direct
[PE3-bgp-vpn1]
quit
# Configure PE4.
# Enable BGP.
[PE4]
bgp 100
# In the BGP-IPv4 instance view, specify CEs as EBGP peers and import direct routes.
[PE4-bgp]
ipv4-family vpn-instance vpn1
[PE4-bgp-vpn1]
peer 10.4.1.2 as-number 65420
[PE4-bgp-vpn1]
import-route direct
[PE4-bgp-vpn1]
quit
After the configuration, run the
display bgp vpnv4 vpn-instance vpn-instance-name peer
command on PEs, and you can view that BGP peer relationships are set up between PEs and
CEs and are in Established state. Each PE can ping its connected CE.
For example, information about PE1 is displayed as follows:
[PE1]
display bgp vpnv4 vpn-instance vpn1 peer
BGP local router ID : 1.1.1.1
Local AS number : 100
Total number of peers : 1 Peers in established state : 1
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.
282