local-preferenceSyntax local-preference local-preference;Hierarchy Level [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-nameneighbor address],[edit logical-systems logical-system-name routing-instances routing-instance-name protocolsbgp],[edit logical-systems logical-system-name routing-instances routing-instance-name protocolsbgp group group-name],[edit logical-systems logical-system-name routing-instances routing-instance-name protocolsbgp 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-nameneighbor address]Release Information Statement introduced before Junos OS Release 10.2 for J-EX Series switches.Description Modify the value of the LOCAL_PREF path attribute, which is a metric used by IBGPsessions to indicate the degree of preference for an external route. The route with thehighest local preference value is preferred.The LOCAL_PREF path attribute always is advertised to internal BGP peers and toneighboring 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 orpeer.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 BGProute is received without a LOCAL_PREF attribute, the route is handled locally (it isstored in the routing table and advertised by BGP) as if it were received with aLOCAL_PREF value of 100. By default, non-BGP routes that are advertised by BGPare advertised with a LOCAL_PREF value of 100.Required PrivilegeLevelrouting—To view this statement in the configuration.routing-control—To add this statement to the configuration.RelatedDocumentation• preference on page 1660• Configuring the Local Preference Value for BGP Routes1599Chapter 73: Configuration Statements for Layer 3 Protocols