Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- local-preference
- ACX, M, PTX, QFX, T Series
- Example: Configuring the Preference Value for BGP Routes
preference (Protocols BGP)
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
Specify the preference for routes learned from BGP.
At the BGP global level, the preference statement sets the preference for routes learned from BGP. You can override this preference in a BGP group or peer preference statement.
At the group or peer level, the preference statement sets the preference for routes learned from the group or peer. Use this statement to override the preference set in the BGP global preference statement when you want to favor routes from one group or peer over those of another.
Options
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: 170 for the primary preference
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Related Documentation
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- local-preference
- ACX, M, PTX, QFX, T Series
- Example: Configuring the Preference Value for BGP Routes
Published: 2013-08-15
Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- local-preference
- ACX, M, PTX, QFX, T Series
- Example: Configuring the Preference Value for BGP Routes