Network Sales and Services Handbook (Cisco Press Networking Technology)
The following steps are taken by a BGP router when determining the preferred path to a destination. After a BGP path criterion has been selected, the path selection process ends for that session.
The following list identifies the steps BGP follows when selecting routes to a network destination:
Verify the next hop is accessible.
(Internal Paths Only] If synchronization is enabled, the route must exist in the IGP order to be selected.
(Cisco Proprietary) Use the path with the largest weight because the weight gives the path preference.
If routes have identical weights, use the route with the higher local preference.
If routes have identical local preference, use the route that the local router originated.
If no route was originated, use the shorter AS path.
If AS paths are identical lengths, choose the external path over an internal path.
If all routes are external, use the route with the lowest origin code.
If the origin codes are the same and the paths came from the same AS, use the path with the lowest MULTI_EXIT_DISC (MED) attribute.
The EBGP path holds preference over the IBGP path.
Select the shortest path within the AS (the lowest IGP metric).
If multipath (Cisco IOS "maximum-path") is enabled at this point, multiple paths may be inserted into the routing table, if both (or all) paths are external routes and originated from the same autonomous system.
Use the route with the lowest IP address value for the BGP Router ID (RID).
If IGP is disabled and only internal paths are left, use the path through the closest neighbor.
Категории