Route preferences are used to select which route is installed in the forwarding table when several protocols calculate routes to the same destination. The route with the lowest preference value is selected. For more information about route preferences, see Route Preferences.
By default, internal OSPF routes have a preference value of 10, and external OSPF routes have a value of 150. To change the preference values, include the preference statement (for internal routes) or the external-preference statement (for external routes):
-
external-preference preference;
-
preference preference;
For a list of hierarchy levels at which you can include these statements, see the statement summary section for these statements.
The preference can be a value from 0 through 4,294,967,295 (232 – 1).