DGS-6604
bgp default local-preference
bgp default local-preference NUMBER
no bgp default local-preference
Syntax Description
NUMBER
Default
Command Mode
Usage Guideline
Example
Switch(config)# router bgp 65534
Switch(config-router)# bgp default local-preference 200
CLI Reference Guide
Use this command to change the default local preference value. To return the
local preference value to the default setting, use the no form of this command.
Range of local preference is 0 to 4294967295. A higher number is preferred to a
lower number in the comparison.
NUMBER: 100
Router configuration.
The local preference attribute is a discretionary attribute that is used to apply a
degree of preference to a route during the BGP best path selection process.
This attribute is exchanged only between iBGP peers and used to determine
local policy. The route with the highest local preference becomes the preferred
route.
This example shows how to configure default value of the local preference to 200
for autonomous system 65534:
Verify the settings by entering show ip protocols bgp command.
bgp default local-preference
74