01-11-2021 01:05 PM
I've enabled ip load sharing globally as well as maximum-paths in ebgp itself.
Checking my route table, I see only one route to my destination.
If I disable the ports, the secondary route does insert itself in the table.
Is this expected behavior for ECMP over ebgp?
I would think that the route table would show both hops for a destination with the same MED or weight, etc.
01-12-2021 09:35 AM
So, oddly enough.
- maximum-paths ebgp 2 from router bgp
and enabling ip-load sharing 2
with maximum paths use-load-sharing works.
maybe a bug.
01-17-2021 01:47 AM
IP load sharing kicks in when IP route table contains more than one path to a destination and the paths each have the lowest cost.
IP load sharing uses a hashing algorithm based on the source IP address, destination IP address, and protocol field in the IP header, TCP, and UDP information to distribute the traffic.
In BGP, When multiple paths to the same destination is recieved, BGP selects the best path based on a list of attributes. This is to have granular control over how you forward your traffic and to which autonomous systems instead of just going for the shortest path based on a metric. Only the best path gets into the routing table and remaining will show up in the bgp table.
01-17-2021 01:52 AM
The best path is selected based on following attributes and priority.
2 Local Preference
4 AS path length
5 Origin code
7 eBGP path over iBGP path
8 Shortest IGP path to BGP next hop
9 Oldest path
10 Router ID
11 Neighbor IP address