bgp bestpath as-path multipath-relax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2018 08:25 AM
Hello Guys
what the below hidden command does exactly ? how it works
bgp bestpath as-path multipath-relax
Thanks
- Labels:
-
Routing Protocols
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2018 08:36 AM
Hi Ibrahim,
By default, IOS does not allow you to load balance between multiple paths received from different AS numbers. This commands changes this default behavior. I have seen some customers using it to load balance between two default routes (0/0) received from two upstream ISPs.
Regards,
Harold Ritter, CCIE #4168 (EI, SP)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2018 08:40 AM
Hello Harold
this is to load share out bound traffic no inbound , is that true
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2018 08:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2018 05:45 AM
If it is doing only to outbound traffic, Then what is the process to do for incoming traffic?
@Joseph W. Doherty wrote:
Correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2018 07:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2018 09:23 AM
Thank You for your reply, I am studying for CCIE R&S lab, i have created a big network in my own lab, where i faced this issue, Can you please suggest the solutions, I will be very thankful to your.
Please suggest the solution.
Regards
Siba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2018 05:58 AM
If it is doing only to outbound traffic, Then what is the process to do for incoming traffic?
Regards
Siba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2019 12:18 AM
Hi Ibrahim
This is also applicable in case of DC fabric, ( leaf spine architecture ).
In case one have different AS number at Spine and Leaf layer, even when you have multipath ; add path features enabled. Only one path is installed in routing table. As the router sees the AS - Path different on the 2 routes recieved ( Spine 1 & Spine 2 )
To enable BGP to install multiple path, all values must be equal. ( including AS path / length ) so if we have 2 different AS path, it does not consider them equal
This command allows BGP to deviate from standard rules, and install both prefixes even when they are received from different AS path
Hope that helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2019 12:26 AM
Hi,
By default, there is no load balancing in IOS with BGP but this command will enable the Load balancing between two different routes.
https://ccieblog.co.uk/bgp/bgp-unequal-load-cost-sharing
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2020 10:36 PM
To answer your question in simple words, the command is used to enable Load sharing in BGP. The command is used in conjunction with 'maximum-paths' command.
To understand this you need to keep just 2 things in mind, first BGP calculates best path based on the attributes and second by default load sharing or someone would call it load balancing is disabled in BGP. So, here is how it works :-
Scenario :
We have a router (CE) which is connected to 2 PEs (let's call it PE1 and PE2). Both of these PEs are advertising routes to a particular destination (eg. 1.1.1.1/32).
1. Now if you run 'show ip route' it will show the best path i.e., from PE1, however when you 'll check 'show ip bgp 1.1.1.1' it will should you 2 routes, one which you're learning from PE1 will show as best.
2. What we want here is to use both the paths that is, if traffic is sent to 1.1.1.1 from CE then the packets should be load shared between PE 1 and PE 2.
3. First we need to enable multipath in BGP by following command :-
#router bgp <AS No.>
#maximum-paths 4 <could range from 1-32>
This command enables BGP to use upto 4 paths for the same destination.
4. As we know that in BGP for preferring a route over the other we have several attributes. In this scenario we have same Weight, local preference, originate and no. of AS path hop and usually router id becomes the tie breaker. So when we use command :-
bgp bestpath as-path multipath-relax
we can see that both the routes in BGP as well as in the routing table appears as best.
Just use the above scenario and compare the results of show ip bgp and show ip route.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2021 08:37 PM
Hi All,
Actually I have a same question but for a different Topology.
I have two routers connecting to different Service Providers (Router A to Service provider A1 and Router B to Service Provider B1).
We are using iBGP between A and B and eBGP between A to A1 and B to B1.
Can I use ''bgp bestpath as-path multipath-relax'' command to load balance/share outbound traffic between these two service providers in different AS'es ?
Where all this command be applied ? in eBGP as well as iBGP ? (we are using VRF).
Regards
NAVAR
