Supported Platforms
Related Documentation
- EX, M, MX, PTX, QFX, T Series
- aggregate
- generate
- EX, M, MX, PTX, T Series
- static
- J, M, MX, SRX, T Series
- Examples: Configuring Static Routes
- J, M, MX, PTX, SRX, T Series
- Example: Summarizing Routes Through Route Aggregation
- M, MX, T Series
- Example: Conditionally Generating Static Routes
preference (Routing Options)
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Statement introduced in Junos OS Release 11.3 for the QFX Series.
Description
Preference value for a static, aggregate, or generated route. You also can specify a secondary preference value (preference2), as well as colors, which are even finer-grained preference values (color and color2).
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
preference—Preference value. A lower number indicates a more preferred route.
Range: 0 through 4,294,967,295 (232 – 1)
Default: 5 (for static routes), 130 (for aggregate and generated routes)
type type—(Optional) Type of route.
Range: 1 through 16
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Related Documentation
- EX, M, MX, PTX, QFX, T Series
- aggregate
- generate
- EX, M, MX, PTX, T Series
- static
- J, M, MX, SRX, T Series
- Examples: Configuring Static Routes
- J, M, MX, PTX, SRX, T Series
- Example: Summarizing Routes Through Route Aggregation
- M, MX, T Series
- Example: Conditionally Generating Static Routes
Published: 2012-08-02
Supported Platforms
Related Documentation
- EX, M, MX, PTX, QFX, T Series
- aggregate
- generate
- EX, M, MX, PTX, T Series
- static
- J, M, MX, SRX, T Series
- Examples: Configuring Static Routes
- J, M, MX, PTX, SRX, T Series
- Example: Summarizing Routes Through Route Aggregation
- M, MX, T Series
- Example: Conditionally Generating Static Routes