Chapter 29
| IP Routing Commands
Border Gateway Protocol (BGPv4)
– 947 –
bgp default local-
preference
This command sets the default local preference used for best path selection among
local iBGP peers. Use the no form to restore the default setting.
Syntax
bgp default local-preference preference
preference – Degree of preference iBGP peers give local routes during BGP
best path selection. The higher the value, the more the route is to be
preferred. (Range: 0-4294967295)
Command Mode
Router Configuration
Default Setting
100
Command Usage
Local preference is a discretionary attribute applied to a route during the BGP best
path selection process. It is exchanged only between iBGP peers, and used to
determine local policy.
Example
Console(config-router)#bgp default local-preference 100
Console(config-router)#
bgp deterministic-
med
This command enforces deterministic comparison of the MED attribute between all
paths received from the same AS, ensuring that selection of the best path will
always be the same, regardless of the order in which the paths are received by the
local router. Use the no form to disable this feature.
Syntax
[no] bgp deterministic-med
Command Mode
Router Configuration
Default Setting
Disabled
Command Usage
â—† The MED is compared after BGP attributes weight, local preference, AS-path
and origin have been compared and are equal. When deterministic comparison
of the MED is enabled, all paths for the same route prefix (received from peers
within the same AS) are grouped together and arranged according to their
MED value. Based on this comparison, the best path is then chosen.