Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

color

 

Syntax

Hierarchy Level

Release Information

Statement introduced before Junos OS Release 7.4.

Statement introduced in Junos OS Release 9.0.

Description

Fine-grained preference value for a static, aggregate, or generated route.

You can also specify a primary route preference (by including the color statement in the configuration), and a secondary preference that is used as a tiebreaker (by including the color2 statement). You can also mark route preferences with additional route tiebreaker information by specifying a primary route preference and a tiebreaker route preference (by including the preference and preference2 statements in the configuration).

If the Junos OS routing table contains a dynamic route to a destination that has a better (lower) preference value than the static, aggregate, or generated route, the dynamic route is chosen as the active route and is installed in the forwarding table.

Options

metric_value—The metric value for an aggregate, a generated, or a static route.

Range: 0 through 4,294,967,295 (232 – 1)

type metric_type—(Optional) External metric type for routes exported by OSPF. When routes are exported to OSPF, type 1 routes are advertised in type 1 externals, and routes of any other type are advertised in type 2 externals. Note that if a qualified-next-hop metric value is configured, this value overrides the route metric.

Range: 1 through 16

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.