Supported Platforms
Related Documentation
- ACX, M, MX, PTX, QFX, T Series
- Example: Configuring the Local Preference Value for BGP Routes
- ACX, M, MX, T Series
- Understanding Internal BGP Peering Sessions
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- preference
local-preference
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
Modify the value of the LOCAL_PREF path attribute, which is a metric used by IBGP sessions to indicate the degree of preference for an external route. The route with the highest local preference value is preferred.
The LOCAL_PREF path attribute always is advertised to internal BGP peers and to neighboring confederations. It is never advertised to external BGP peers.
Default
If you omit this statement, the LOCAL_PREF path attribute, if present, is not modified.
Options
local-preference—Preference to assign to routes learned from BGP or from the group or peer.
Range: 0 through 4,294,967,295 (232 – 1)
Default: If the LOCAL_PREF path attribute is present, do not modify its value. If a BGP route is received without a LOCAL_PREF attribute, the route is handled locally (it is stored in the routing table and advertised by BGP) as if it were received with a LOCAL_PREF value of 100. By default, non-BGP routes that are advertised by BGP are advertised with a LOCAL_PREF value of 100.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Related Documentation
- ACX, M, MX, PTX, QFX, T Series
- Example: Configuring the Local Preference Value for BGP Routes
- ACX, M, MX, T Series
- Understanding Internal BGP Peering Sessions
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- preference
Published: 2013-08-15
Supported Platforms
Related Documentation
- ACX, M, MX, PTX, QFX, T Series
- Example: Configuring the Local Preference Value for BGP Routes
- ACX, M, MX, T Series
- Understanding Internal BGP Peering Sessions
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- preference