Specify the Route Preference
By default, static routes have a preference value of 5. 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 (colorandcolor2). To do this for IPv4 static routes, include one or more of the following statements:[edit routing-options static (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.
To do this for IPv6 static routes, include one or more of the following statements:
[edit routing-options rib inet6.0 static (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. Note that if a qualified-next-hop preference value is configured, this value will override the route preference.