How BGP finds the best path
Apr 12
Cisco, Networking bgp, ccip, Cisco No Comments
Today in preparation for one of my Cisco CCIP exams, I’ve found a rather nice hierarchical overview as to how the BGP routing protocol finds the best route/path. Here’s how it’s done.
- Ignore routes with an inaccessible next hop address
- Prefer the path with the highest WEIGHT (Cisco proprietary)
- Prefer the path with the highest LOCAL_PREF
- Prefer the path that was locally originated via a network command
- Prefer the path with the shortest AS_PATH
- Prefer the path with the lowest origin type
- Prefer the path with the lowest multi-exit discriminator (MED)
- Prefer eBGP over iBGP paths
- Prefer the path with the lowest IGP metric to the BGP next hop
- Determine if multiple paths require installation in the routing table for BGP Multipath
- When both path are external, prefer the path that was received first (the oldest one)
- Prefer the route that comes from the BGP router with the lowest router ID
- If the originator or router ID is the same for multiple paths, prefer the path with the minimum cluster list length
- Prefer the path that comes from the lowest neighbor address













