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 at the[edit routing-options aggregate (defaults | route)]hierarchy level (for routing instances, include the options at the[edit routing-instancesrouting-instance-namerouting-options aggregate (defaults | route)]hierarchy level):[edit routing-options aggregate (defaults | route)](preference | preference2 | color | color2)preference<typetype>;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.