05-26-2022 04:17 AM
Hi all,
I have the following topology, two EBGP to two PE routers, each BGP is terminated in a different VRF. Each VRF receives same routes from the external ISP, and export it to the main VRF configured on a route reflector. I wat to implement BGP multipath in the main VRF, on the route received from external BGP.
I tried many configuration but with no success, this is the output for one of the routes:
sh bgp vrf internet 2.0.1.66
BGP routing table entry for 2.0.1.0/24, Route Distinguisher: 10.255.255.60:1
Versions:
Process bRIB/RIB SendTblVer
Speaker 77042 77042
Last Modified: May 26 14:04:26.712 for 00:00:14
Paths: (3 available, best #1)
Not advertised to any peer
Path #1: Received by speaker 0
Not advertised to any peer
3257, (Received from a RR-client), (received & used)
10.255.255.72 (metric 210) from 10.255.255.72 (10.255.255.72)
Received Label 24125
Origin incomplete, metric 0, localpref 1000, valid, internal, best, group-best, import-candidate, imported
Received Path ID 0, Local Path ID 1, version 77042
Community: 3257:1 25003:10 25003:99
Extended community: RT:1234:1234 RT:3257:3257
Source AFI: VPNv4 Unicast, Source VRF: default, Source Route Distinguisher: 10.255.255.72:3257
Path #2: Received by speaker 0
Not advertised to any peer
3356, (Received from a RR-client), (received & used)
10.255.255.73 (metric 210) from 10.255.255.73 (10.255.255.73)
Received Label 24126
Origin incomplete, metric 0, localpref 1000, valid, internal, group-best, imported
Received Path ID 0, Local Path ID 0, version 0
Community: 3356:1 25003:10 25003:99
Extended community: RT:1234:1234 RT:3356:3356
Source AFI: VPNv4 Unicast, Source VRF: default, Source Route Distinguisher: 10.255.255.73:3356
Attached is a diagram of the network. Can anyone help?
Thanks in advance.
Adi.
Solved! Go to Solution.
06-01-2022 05:49 AM
Hi @IBEngTeam ,
The reason it works with the static routes redistributed from the PE is that these routes are considered local (empty AS path). The reason it does not work for the routes coming from outside the AS is that you do not have "bgp bestpath as-path multipath-relax" configured.
router bgp 25003
vrf Internet
bgp bestpath as-path multipath-relax <++++ This command is needed to ignore the fact that the paths have different AS paths
address-family ipv4 unicast
maximum-paths ibgp 2
!
Regards,
05-28-2022 10:59 AM - edited 05-28-2022 11:06 AM
Hi @IBEngTeam ,
You need to configure the "bgp bestpath as-path multipath-relax" command for ECMP to work between paths coming from different ASNs.
router bgp xxx
bgp bestpath as-path multipath-relax
!
address-family ipv4 vrf Internet
maximum-paths 2
exit-address-family
Regards,
05-28-2022 08:58 PM
Hi,
Thanks for the reply.
We have configured "bgp bestpath as-path multipath-relax" under router bgp, with no help.
When configuring a static route on the PE routers, all works well on the route reflector:
sh bgp vrf internet 123.123.123.123 Sun May 29 06:52:51.122 IDT BGP routing table entry for 123.123.123.123/32, Route Distinguisher: 10.255.255.60:1 Versions: Process bRIB/RIB SendTblVer Speaker 83296 83296 Last Modified: May 28 06:06:12.063 for 1d00h Paths: (2 available, best #1) Not advertised to any peer Path #1: Received by speaker 0 Not advertised to any peer Local, (Received from a RR-client), (received & used) 10.255.255.72 (metric 210) from 10.255.255.72 (10.255.255.72) Received Label 24134 Origin incomplete, metric 0, localpref 100, valid, internal, best, group-best, multipath, import-candidate, imported Received Path ID 0, Local Path ID 1, version 83296 Extended community: RT:1234:1234 RT:3257:3257 Source AFI: VPNv4 Unicast, Source VRF: default, Source Route Distinguisher: 10.255.255.72:3257 Path #2: Received by speaker 0 Not advertised to any peer Local, (Received from a RR-client), (received & used) 10.255.255.73 (metric 210) from 10.255.255.73 (10.255.255.73) Received Label 24131 Origin incomplete, metric 0, localpref 100, valid, internal, multipath, import-candidate, imported Received Path ID 0, Local Path ID 0, version 0 Extended community: RT:1234:1234 RT:3356:3356 Source AFI: VPNv4 Unicast, Source VRF: default, Source Route Distinguisher: 10.255.255.73:3356 |
But multipath for ebgp routes from PE routesrs (under vrf), is not working.
Any ideas?
Thanks.
05-30-2022 06:44 AM
Hi @IBEngTeam ,
I see C1 is an iBGP neighbor to PE1 and PE2. You would need to configure " maximum-paths ibgp 2" under the vrf Internet section of the BGP configuration as follow:
router bgp xxx
address-family ipv4 vrf Internet
maximum-paths ibgp 2
exit-address-family
Regards,
05-31-2022 09:25 PM
Hi,
just configured "maximum-paths ibgp 2", same result.
this is the bgp output:
sh bgp vrf internet 2.0.1.0 Wed Jun 1 07:22:49.822 IDT BGP routing table entry for 2.0.1.0/24, Route Distinguisher: 10.255.255.60:1 Versions: Process bRIB/RIB SendTblVer Speaker 98987 98987 Last Modified: May 31 13:54:00.593 for 17:28:49 Paths: (3 available, best #1) Not advertised to any peer Path #1: Received by speaker 0 Not advertised to any peer 3257, (Received from a RR-client), (received & used) 10.255.255.72 (metric 210) from 10.255.255.72 (10.255.255.72) Received Label 24008 Origin incomplete, metric 0, localpref 1000, valid, internal, best, group-best, import-candidate, imported Received Path ID 0, Local Path ID 1, version 98987 Community: 6:25003 3257:1 25003:10 25003:99 Extended community: RT:1234:1234 RT:3257:3257 Source AFI: VPNv4 Unicast, Source VRF: default, Source Route Distinguisher: 10.255.255.72:3257 Path #2: Received by speaker 0 Not advertised to any peer 4455, (Received from a RR-client), (received & used) 10.255.255.72 (metric 210) from 10.255.255.72 (10.255.255.72) Received Label 24006 Origin incomplete, metric 0, localpref 900, valid, internal, group-best, imported Received Path ID 0, Local Path ID 0, version 0 Community: 6:25003 4455:1 25003:10 25003:99 Extended community: RT:1234:1234 RT:4455:4455 Source AFI: VPNv4 Unicast, Source VRF: default, Source Route Distinguisher: 10.255.255.72:4455 Path #3: Received by speaker 0 Not advertised to any peer 3356, (Received from a RR-client), (received & used) 10.255.255.73 (metric 210) from 10.255.255.73 (10.255.255.73) Received Label 24006 Origin incomplete, metric 0, localpref 1000, valid, internal, group-best, imported Received Path ID 0, Local Path ID 0, version 0 Community: 6:25003 3356:1 25003:10 25003:99 Extended community: RT:1234:1234 RT:3356:3356 Source AFI: VPNv4 Unicast, Source VRF: default, Source Route Distinguisher: 10.255.255.73:3356 |
Only one path is selected, what can it be?
Thanks,
Adi.
06-01-2022 03:25 AM
Hi @IBEngTeam ,
Did you try clearing the sessions after changing the configuration?
clear bgp vrf Internet ipv4 uni * soft
Also, could you please post the bgp configuration.
Regards,
06-01-2022 03:47 AM - edited 06-01-2022 05:13 AM
Hi,
thanks for the reply.
yes, i tried "clear bgp vrf Internet ipv4 uni * soft" - did not help.
This is the configuration:
router bgp 1 vrf internet route-policy rp_internet_export prefix-set ps_all_ip_ext_adv
prefix-set ps_leak_to_global |
this is very strange, because static routes being advertised form PE routers to vrf internet are working ok:
sh bgp vrf internet 123.123.123.123 Wed Jun 1 13:46:41.403 IDT BGP routing table entry for 123.123.123.123/32, Route Distinguisher: 10.255.255.60:1 Versions: Process bRIB/RIB SendTblVer Speaker 101475 101475 Last Modified: Jun 1 07:26:45.725 for 06:19:55 Paths: (2 available, best #1) Not advertised to any peer Path #1: Received by speaker 0 Not advertised to any peer Local, (Received from a RR-client), (received & used) 10.255.255.72 (metric 210) from 10.255.255.72 (10.255.255.72) Received Label 24004 Origin incomplete, metric 0, localpref 100, valid, internal, best, group-best, multipath, import-candidate, imported Received Path ID 0, Local Path ID 1, version 101475 Extended community: RT:1234:1234 RT:3257:3257 Source AFI: VPNv4 Unicast, Source VRF: default, Source Route Distinguisher: 10.255.255.72:3257 Path #2: Received by speaker 0 Not advertised to any peer Local, (Received from a RR-client), (received & used) 10.255.255.73 (metric 210) from 10.255.255.73 (10.255.255.73) Received Label 24005 Origin incomplete, metric 0, localpref 100, valid, internal, multipath, import-candidate, imported Received Path ID 0, Local Path ID 0, version 0 Extended community: RT:1234:1234 RT:3356:3356 Source AFI: VPNv4 Unicast, Source VRF: default, Source Route Distinguisher: 10.255.255.73:3356 |
Any ideas?
Thanks,
Adi.
06-01-2022 05:49 AM
Hi @IBEngTeam ,
The reason it works with the static routes redistributed from the PE is that these routes are considered local (empty AS path). The reason it does not work for the routes coming from outside the AS is that you do not have "bgp bestpath as-path multipath-relax" configured.
router bgp 25003
vrf Internet
bgp bestpath as-path multipath-relax <++++ This command is needed to ignore the fact that the paths have different AS paths
address-family ipv4 unicast
maximum-paths ibgp 2
!
Regards,
06-01-2022 05:56 AM
Hi Harold,
Thanks, that solved the issue.
We thought the command "bgp bestpath as-path multipath-relax" is only configured under main BGP, it was not clear that it is needed under the vrf.
Learned a lot!
Thanks again,
Adi.
06-01-2022 06:30 AM
Hi Adi,
I am glad it worked for you.
Have a great day,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide