[Contents] [Prev] [Next] [Index] [Report an Error]

Specifying the Route Preference

By default, generated routes have a preference value of 130. If the JUNOS 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 a secondary preference value (preference2) and colors, which are even finer-grained preference values (color and color2). To do this, include one or more of the following statements:

(preference | preference2 | color | color2) preference <type type>;

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 from 0 through 4,294,967,295 (232 – 1) with a lower number indicating a more preferred route. For more information about preference values, see Route Preferences.

In the type option, you specify the type of route.


[Contents] [Prev] [Next] [Index] [Report an Error]