BGP Equal cost multipath
By default, BGP does not perform load balancing. BGP will select only a single path for a prefix. You can see this from the very last attribute that is examined. If all other attributes are the same, at the very end, a BGP router will prefer the path with the lowest neighbor IP address. This is the last tiebreaker, and the neighbor IP addresses will never be the same, so one will always win out over the other.
To enable load sharing, you must enable BGP multipath load sharing using the BGP command:
maximum-paths
This will allow a BGP router to select additional paths to a destination as long as the following attributes for those paths are the same:
- Weight
- Local Preference
- AS Path (both AS number and AS path length)
- Origin code
- MED
- IGP metric
Take a look at the BGP Equal cost multipath configuration syntax for more information about the command.
Links: