preference
Syntax
Hierarchy Level
[edit protocols bgp],[edit protocols bgpgroupgroup-name],[edit protocols bgp groupgroup-nameneighboraddress],
[edit routing-instancesrouting-instance-nameprotocols bgp],[edit routing-instancesrouting-instance-nameprotocols bgpgroupgroup-name],[edit routing-instancesrouting-instance-nameprotocols bgp groupgroup-name
neighboraddress]Description
Preference for routes learned from BGP.
At the BGP global level, the
preferencestatement sets the preference for routes learned from BGP. You can override this preference in a BGP group or peerpreferencestatement.At the group or peer level, the
preferencestatement sets the preference for routes learned from the group or peer. Use this statement to override the preference set in the BGP globalpreferencestatement 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 preferenceUsage Guidelines
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.See Also