Specify the Route Preference
By default, aggregate routes have a preference value of 130. If the routing table contains a dynamic route to a destination that has a better (lower) preference value than this, the dynamic route is chosen as the active route and is installed in the forwarding table.
To modify the default preference value, specify a primary preference value (
preference). You also can specify secondary preference value (preference2); and colors, which are even finer-grained preference values (colorandcolor2). To do this, include one or more of the following statements:[edit routing-options aggregate (defaults | route)](preference | preference2 | color | color2)preference<typetype>;For a list of hierarchy levels at which you can configure these statements, see the statement summary sections for these statements.
The preference value can be a number in the range 1 through 255, with a lower number indicating a more preferred route. For more information about preference values,
see Route Preferences.