- Prefer the path with the highest WEIGHT. (Weight is a Cisco-proprietary attribute and is non-transitive)
- Prefer the path with the highest LOCAL_PREF. (Default value is 100 and is non-transitive)
- Prefer the path that was locally originated via a network or aggregate BGP sub-command or through redistribution from an IGP.
- Prefer the path with the shortest AS_PATH.
- Prefer the path with the lowest origin type.
- Prefer the path with the lowest multi-exit discriminator (MED).
- Prefer eBGP over iBGP paths.
- Prefer the path with the lowest IGP metric to the BGP next hop.
- Determine if multiple paths require installation in the routing table for BGP Multipath.
- When both paths are external, prefer the path that was received first (the oldest one).
- Prefer the route that comes from the BGP router with the lowest router ID.
- If the originator or router ID is the same for multiple paths, prefer the path with the minimum cluster list length.
- Prefer the path that comes from the lowest neighbor address.
Protocol |
Cisco |
Juniper |
Connected / Direct |
0 |
0 |
Static |
1 |
5 |
EIGRP Summary |
5 |
– |
OSPF Internal |
– |
10 |
IS-IS Level 1 Internal |
– |
15 |
IS-IS Level 2 Internal |
– |
18 |
BGP External |
20 |
– |
EIGRP Internal |
90 |
– |
OSPF All |
110 |
– |
IS-IS All |
115 |
– |
RIP |
120 |
100 |
OSPF External |
– |
150 |
IS-IS Level 1 External |
– |
160 |
IS-IS Level 2 External |
– |
165 |
EIGRP External |
170 |
– |
BGP All |
– |
170 |
BGP Internal |
200 |
– |