- local-preference local-preference;
- [edit logical-systems logical-system-name protocols bgp],
- [edit logical-systems logical-system-name protocols bgp group group-name],
- [edit logical-systems logical-system-name protocols bgp group group-name neighbor address],
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols
bgp],
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols
bgp group group-name],
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols
bgp group group-name neighbor address],
- [edit protocols bgp],
- [edit protocols bgp group group-name],
- [edit protocols bgp group group-name neighbor address],
- [edit routing-instances routing-instance-name protocols bgp],
- [edit routing-instances routing-instance-name protocols bgp group group-name],
- [edit routing-instances routing-instance-name protocols bgp group group-name neighbor address]
Statement introduced before JUNOS Release 7.4.
Modify the value of the LOCAL_PREF path attribute, which is a metric used by internal BGP 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.
If you omit this statement, the LOCAL_PREF path attribute, if present, is not modified.
local-preference—Preference to assign to routes learned from BGP or from the group or peer.
See Configuring the BGP Local Preference.
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.