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

Specifying 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 (color and color2). To do this for IPv4 static routes, include one or more of the following statements:

static (defaults | route) {
(preference | preference2 | color | color2) preference <type type>;
}

To do this for IPv6 static routes, include one or more of the following statements:

rib inet6.0 static (defaults | route) {
(preference | preference2 | color | color2) preference <type type>;
}

For a list of hierarchy levels at which you can include 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. Note that if a qualified-next-hop preference value is configured, this value overrides the route preference.

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


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