[PE1-bgp-vpn1]
quit
[PE1-bgp]
quit
# Configure PE1 to set up the MP-IBGP peer relationship with ASBR1.
[PE1]
bgp 100
[PE1-bgp]
peer 2.2.2.9 as-number 100
[PE1-bgp]
peer 2.2.2.9 connect-interface loopback 1
[PE1-bgp]
ipv4-family vpnv4
[PE1-bgp-af-vpnv4]
peer 2.2.2.9 enable
[PE1-bgp-af-vpnv4]
quit
# Configure ASBR1 to set up the MP-IBGP peer relationship with PE1.
[ASBR1]
bgp 100
[ASBR1-bgp]
peer 1.1.1.9 as-number 100
[ASBR1-bgp]
peer 1.1.1.9 connect-interface loopback 1
[ASBR1-bgp]
ipv4-family vpnv4
[ASBR1-bgp-af-vpnv4]
peer 1.1.1.9 enable
[ASBR1-bgp-af-vpnv4]
quit
[ASBR1-bgp]
quit
NOTE
The configurations of CE2, PE2 and ASBR2 are similar to that of CE1, PE1 and ASBR1 and are not
mentioned here.
After the above configurations, run the
display bgp vpnv4 vpn-instance peer
command. You
can find the BGP peer relationship between PE and CE is set up, that is the "State" in display is
"Established". Run
display bgp vpnv4 all peer
to find the BGP peer relationship is "Established"
between the PE and the CE, and between the PE and the ASBR.
Consider PE1 as an example.
[PE1]
display bgp vpnv4 vpn-instance vpn1 peer
BGP local router ID : 1.1.1.9
Local AS number : 100
VPN-Instance vpn1, router ID 1.1.1.9:
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
10.1.1.1 4 65001 10 10 0 00:07:10 Established 2
[PE1]
display bgp vpnv4 all peer
BGP local router ID : 1.1.1.9
Local AS number : 100
Total number of peers : 2 Peers in established state : 2
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
2.2.2.9 4 100 3 7 0 00:01:36 Established 0
Peer of IPv4-family for vpn instance :
VPN-Instance vpn1, router ID 1.1.1.9:
10.1.1.1 4 65001 13 13 0 00:04:00 Established 2
Step 4
Configure inter-AS VPN in VRF-to-VRF mode.
# Configure ASBR1. Create a VPN instance and bind it to the interface connected to ASBR2.
(ASBR1 regards ASBR2 as its own CE.)
[ASBR1]
ip vpn-instance vpn1
[ASBR1-vpn-instance-vpn1]
ipv4-family
[ASBR1-vpn-instance-vpn1-af-ipv4]
route-distinguisher 100:2
[ASBR1-vpn-instance-vpn1-af-ipv4]
vpn-target 1:1 both
[ASBR1-vpn-instance-vpn1-af-ipv4]
quit
[ASBR1-vpn-instance-vpn1]
quit
[ASBR1]
interface gigabitethernet 2/0/0
[ASBR1-GigabitEthernet2/0/0]
ip binding vpn-instance vpn1
[ASBR1-GigabitEthernet2/0/0]
ip address 192.1.1.1 24
[ASBR1-GigabitEthernet2/0/0]
quit
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.
178