
Changing the BGP Default Local Preference Value
Perform this task to set the default local preference value for BGP paths.
SUMMARY STEPS
1.
configure
2.
router bgp as-number
3.
bgp default local-preference
value
4.
commit
DETAILED STEPS
Purpose
Command or Action
configure
Step 1
Specifies the autonomous system number and enters the
BGP configuration mode, allowing you to configure the
BGP routing process.
router bgp as-number
Example:
RP/0/RP0/CPU0:router(config)# router bgp 120
Step 2
Sets the default local preference value from the default of
100, making it either a more preferable path (over 100) or
less preferable path (under 100).
bgp default local-preference
value
Example:
RP/0/RP0/CPU0:router(config-bgp)# bgp default
local-preference 200
Step 3
commit
Step 4
Configuring the MED Metric for BGP
Perform this task to set the multi exit discriminator (MED) to advertise to peers for routes that do not already
have a metric set (routes that were received with no MED attribute).
SUMMARY STEPS
1.
configure
2.
router bgp as-number
3.
default-metric value
4.
commit
DETAILED STEPS
Purpose
Command or Action
configure
Step 1
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
52
Implementing BGP
Changing the BGP Default Local Preference Value