PurposeCommand or Action
Example:
Device(config-router)# neighbor
172.16.12.1 weight 50
another BGP peer have a default weight of 0; routes
sourced by the local router have a default weight of
32768.
(Optional) Sets a MED metric to set preferred paths to
external neighbors. All routes without a MED will also
default-metric number
Example:
Device(config-router)#
default-metric 300
Step 6
be set to this value. The range is 1 to 4294967295. The
lowest value is the most desirable.
(Optional) Configures the switch to consider a missing
MED as having a value of infinity, making the path
without a MED value the least desirable path.
bgp bestpath med missing-as-worst
Example:
Device(config-router)# bgp
bestpath med missing-as-worst
Step 7
(Optional) Configures the switch to compare MEDs for
paths from neighbors in different autonomous systems.
bgp always-compare med
Example:
Device(config-router)# bgp
always-compare-med
Step 8
By default, MED comparison is only done among paths
in the same AS.
(Optional) Configures the switch to consider the MED
in choosing a path from among those advertised by
different subautonomous systems within a confederation.
bgp bestpath med confed
Example:
Device(config-router)# bgp
bestpath med confed
Step 9
(Optional) Configures the switch to consider the MED
variable when choosing among routes advertised by
different peers in the same AS.
bgp deterministic med
Example:
Device(config-router)# bgp
deterministic med
Step 10
(Optional) Change the default local preference value.
The range is 0 to 4294967295; the default value is 100.
The highest local preference value is preferred.
bgp default local-preference value
Example:
Device(config-router)# bgp default
local-preference 200
Step 11
(Optional) Configures the number of paths to be added
to the IP routing table. The default is to only enter the
maximum-paths number
Example:
Device(config-router)#
maximum-paths 8
Step 12
best path in the routing table. The range is from 1 to 16.
Having multiple paths allows load-balancing among the
paths. (Although the switch software allows a maximum
of 32 equal-cost routes, the switch hardware will never
use more than 16 paths per route.)
Routing Configuration Guide, Cisco IOS XE Everest 16.6.x (Catalyst 9500 Switches)
130
Configuring IP Unicast Routing
Configuring BGP Decision Attributes