Route preference
Routing protocols, including static and direct routing, each by default have a preference. If they find multiple routes to the same destination, the router selects the route with the highest preference as the optimal route.
The preference of a direct route is always 0 and cannot be changed. You can configure a preference for each static route and each dynamic routing protocol. The following table lists the route types and default preferences. The smaller the value, the higher the preference.
Table 3: Route types and default route preferences
Route type | Preference |
---|---|
Direct route | 0 |
Multicast static route | 1 |
OSPF | 10 |
IS-IS | 15 |
Unicast static route | 60 |
RIP | 100 |
OSPF ASE | 150 |
OSPF NSSA | 150 |
IBGP | 255 |
EBGP | 255 |
Unknown (route from an untrusted source) | 256 |