Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

preference (Protocols MPLS)

Syntax

preference preference;

Hierarchy Level

[edit logical-systems logical-system-name protocols mpls],[edit logical-systems logical-system-name protocols mpls label-switched-path lsp-name],[edit logical-systems logical-system-name protocols mpls label-switched-path lsp-name (primary | secondarypath-name],[edit logical-systems logical-system-name protocols mpls static-label-switched-path lsp-name ingress],[edit protocols mpls],[edit protocols mpls label-switched-path lsp-name],[edit protocols mpls label-switched-path lsp-name (primary | secondarypath-name],[edit protocols mpls static-label-switched-path lsp-name ingress]

Release Information

Statement introduced before Junos OS Release 7.4.

Description

Preference for the route.

You can optionally configure multiple LSPs between the same pair of ingress and egress routers. This is useful for balancing the load among the LSPs because all LSPs, by default, have the same preference level. To prefer one LSP over another, set different preference levels for individual LSPs. The LSP with the lowest preference value is used. The default preference for LSPs is lower (more preferred) than all learned routes except direct interface routes.

Options

preference—Preference to assign to the route. A route with a lower preference value is preferred.

Range: 1 through 255

Default: 5 for static MPLS LSPs, 7 for RSVP MPLS LSPs, 9 for LDP MPLS LSPs

Required Privilege Level

routing—To view this statement in the configuration.

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

Published: 2013-07-31