What is the BGP Best Path Selection Process?

What is the BGP Best Path Selection Process?

44004
Created On 09/25/18 19:30 PM - Last Modified 06/13/23 16:48 PM


Resolution


Steps

The 10 steps followed on a Palo Alto Networks device to select the best path in BGP are:

  1. If next-hop is reachable and it’s the only path, select this route.
  2. Otherwise, select path with largest Weight.
  3. If all weights are the same, select largest Local Preference.
  4. If Local Preference is the same, select route that is originated by this router (0.0.0.0 in the next hop field), if any.
  5. If no route originated on this router, select the shortest AS-Path.
  6. If all paths the same, select path with lowest origin code (i [network statement] preferred over e [EGP] which is preferred over ? [redistributed from IGP]).
  7. If origin codes the same, select path with lowest MED.
  8. If equal MED, select external learned path over internal path.
  9. If paths are internal, select path through closest IGP neighbor using the local routing protocol metric.
  10. Select the path with the lowest BGP Router ID.

 

owner: kadak



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/kcSArticleDetail?id=kA10g000000ClZE&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FkcSArticleDetail

Choose Language