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

preference

Syntax

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

Hierarchy Level

[edit logical-systems logical-system-name routing-instances routing-instance-name routing-options (aggregate | generate | static) (defaults | route)],
[edit logical-systems logical-system-name routing-instances routing-instance-name routing-options rib routing-table-name (aggregate | generate | static) (defaults | route)],
[edit logical-systems logical-system-name routing-options (aggregate | generate | static) (defaults | route)],
[edit logical-systems logical-system-name routing-options rib routing-table-name (aggregate | generate | static) (defaults | route)],
[edit routing-instances routing-instance-name routing-options (aggregate | generate | static) (defaults | route)],
[edit routing-instances routing-instance-name routing-options rib routing-table-name (aggregate | generate | static) (defaults | route)],
[edit routing-options (aggregate | generate | static) (defaults | route)],
[edit routing-options rib routing-table-name (aggregate | generate | static) (defaults | route)]

Release Information

Statement introduced before JUNOS Release 7.4.

Description

Preference value for a static, aggregated, 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).

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—(Optional) Type of route.

Range: 1 through 16

Usage Guidelines

See Configuring Static Routes, Configuring Aggregate Routes, and Configuring Generated Routes.

Required Privilege Level

routing—To view this statement in the configuration.

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

Related Topics

aggregate, generate, static


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