Route selection criteria

For each prefix in the routing table, the routing protocol selects the best path. Then, the best path is compared to the next path in the list until all paths in the list are exhausted. The following parameters are used to determine the best path:

  1. Routes are not considered if they are unreachable.

  2. An RTM’s preference is lowered as well as the hierarchy of routes from a different protocol. The lower the preference the higher the chance of the route being the active route.

  3. Routes with higher local preference have preference.

  4. Routes with the shorter AS path have preference.

  5. Routes with the lower origin have preference. IGP = 0 EGP = 1 INCOMPLETE = 2

  6. Routes with the lowest MED metric have preference. Routes with no MED value are exempted from this step unless always-compare-med is configured.

  7. Routes learned by an eBGP peer rather than those learned from an iBGP peer are preferred.

  8. Routes with the lowest IGP cost to the next-hop path attribute are preferred.

  9. Routes with the lowest BGP-ID are preferred.

  10. Routes with shortest cluster list are preferred.

  11. Routes with lowest next-hop IP address are preferred.

Note: