BGP selection process
- Before anything -- if a route is not synchronized, it is thrown out!!
- The address/network given for the next hop is available in the IP routing table
- The route with the highest Weight attribute (the Weight attribute is Cisco proprietary)
- The route with the highest Local_Preference attribute
- Any routes that were learned Locally (next-hop = 0.0.0.0)
- The route with the shortest AS_Path attribute (confed learned paths are not included.)
- The route with the lowest Origin [internal (0), external (1), incomplete (2)]
- The route with the lowest Multi-Exit Discriminator (MED)
- The route learned via EBGP (iBGP routes are discarded at this point)
- The route with the nearest IGP neighbor
- The oldest learned route
- The route with the lowest BGP router-id
