Configuring Inter-AS BGP/MPLS IP VPN in Option C: Implementation method 1
Martin Indeche
MPBN PACO SME Engineer at Nokia | IP | EBK | Msc Computer Science I Mentor
We have looked at configuring Inter-AS BGP/MPLS IP VPN in Options A and B in our previous articles.
Check out option A implementation from this link https://www.dhirubhai.net/pulse/inter-as-bgpmpls-ip-vpn-option-set-up-configuration-huawei-indeche/?trackingId=ISUbn%2Bi%2Bj4mRZx%2FmKLb%2BDw%3D%3D
Check out option B implementation from this link
Both Option A and Option B can meet inter-AS VPN communication requirements. Their main drawback is that ASBRs need to maintain and distribute VPN-IPv4 routes which may hinder network extension when each AS needs to exchange a large number of VPN routes. There are two implementations of Inter-AS BGP Option C:
In this article, we will focus on the first implementation. Below is our topology diagram.
Lab objective: Establish multi-hop EBGP peering between PE1 and PE2, ensure they are able to exchange customer routes, and test communication between the two customer sites.
Configuration Procedure:
领英推荐
PE01
bgp 200
router-id 4.4.4.4
peer 4.4.4.4 as-number 200
peer 4.4.4.4 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
peer 4.4.4.4 enable
peer 4.4.4.4 label-route-capability # ENABLE EXCHANGE OF LABELED ROUTES WITH ASBR
#
ipv4-family vpn-instance VRF1 ##### PEERING TO CUSTOMER
peer 10.10.10.3 as-number 65500
ASBR02
bgp 100
peer 7.7.7.7 as-number 100
peer 7.7.7.7 connect-interface LoopBack0
peer 172.16.16.3 as-number 200
#
ipv4-family unicast
undo synchronization
network 7.7.7.7 255.255.255.255
peer 7.7.7.7 enable
peer 7.7.7.7 route-policy policy2 export #APPLY ROUTE POLICY TO PE01
peer 7.7.7.7 label-route-capability
peer 172.16.16.3 enable
# APPLY ROUTE POLICY TO ASBR01 ##
peer 172.16.16.3 route-policy policy1 export
peer 172.16.16.3 label-route-capability
#
route-policy policy1 permit node 1
apply mpls-label
#
route-policy policy2 permit node 1
if-match mpls-label
apply mpls-label
#
PE01 configurations
bgp 200
peer 7.7.7.7 as-number 100
peer 7.7.7.7 ebgp-max-hop 10
peer 7.7.7.7 connect-interface LoopBack0
#
ipv4-family unicast
undo peer 7.7.7.7 enable
#
ipv4-family vpnv4
undo policy vpn-target
peer 7.7.7.7 enable
#
bgp 100
peer 2.2.2.2 as-number 200
peer 2.2.2.2 ebgp-max-hop 10
peer 2.2.2.2 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
undo peer 2.2.2.2 enable
ipv4-family vpnv4
peer 2.2.2.2 enable
This is how simple it is to set up Option C on Huawei routers. The lab setup and all the configurations are available on demand. Reach out to me if you want to try it in your simulation environment.
DevOps Engineer - Kubernetes -Ansible -Linux - Bash -Network Automation Huawei iMaster NCE Campus & Datacenter-Python - Cloudflare - Datadog - HCIP || CCNP
1 年Kindly share the solution when Route Reflectors are involved I would appreciate it so much [email protected]
Co-Founder & CTO at MICROTECH CLOUD LIMITED |Business developer|
1 年MPLS is a good way to create a redundant network -I would appreciate if you share the lab setup and configs