BGP route selection on the firewall

When there are multiple routes to the same destination, BGP selects routes according to the following rules:
1. Prefers the route with the highest PreVal.
2. Prefers the route with the highest Local_Pref.
3. A summarized route is preferred. A summarized route takes precedence over a nonsummarized route.
4. A locally and manually summarized route takes precedence over a locally and automatically summarized route.
5. A route imported using the network command is preferred over a route imported using the import-route command.
6. Prefers the route with the shortest AS_Path.
7. Prefers the route with the highest Origin type. IGP is higher than EGP, and EGP is higher than Incomplete.
8. Prefers the route with the lowest MED.
9. Prefers routes learned from EBGP (EBGP routes have higher priorities than IBGP routes).
10. Prefers routes in an AS with the lowest IGP metric to BGP. If load balancing is configured, and multiple external routes with the same As_Path exist, select multiple routes based on the configured number of routes for load balancing.
11. Prefers the route with the shortest Cluster_List.
12. Prefers the route with the smallest Originator_ID.
13. Prefers the route advertised by the device with the smallest router ID.
14. Prefers the route learned from the peer with the smallest address if the IP addresses of peers are compared in the route selection process.

Scroll to top