Configure Route Preferences
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
preferencestatement (for internal routes) or theexternal-preferencestatement (for external routes) at the[edit protocols (ospf | ospf3)]hierarchy level:[edit protocols (ospf | ospf3)]external-preferencepreference;preferencepreference;