Specifications
Implementing BGP on Cisco IOS XR Software
How to Implement BGP on Cisco IOS XR Software
RC-52
Cisco IOS XR Routing Configuration Guide
DETAILED STEPS
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
Command or Action Purpose
Step 1
configure
Example:
RP/0/RP0/CPU0:router# configure
Enters global configuration mode.
Step 2
router bgp 
as-number
Example:
RP/0/RP0/CPU0:router(config)# router bgp 120
Enters BGP configuration mode, allowing you to configure 
the BGP routing process.
Step 3
bgp default local-preference 
value
Example:
RP/0/RP0/CPU0:router(config-bgp)# bgp default 
local-preference 200
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). 
Step 4
end
or
commit
Example:
RP/0/RP0/CPU0:router(config-bgp)# end
or
RP/0/RP0/CPU0:router(config-bgp)# commit
Saves configuration changes.
• When you issue the end command, the system prompts 
you to commit changes:
Uncommitted changes found, commit them before 
exiting(yes/no/cancel)?
[cancel]:
–
Entering yes saves configuration changes to the 
running configuration file, exits the configuration 
session, and returns the router to EXEC mode.
–
Entering no exits the configuration session and 
returns the router to EXEC mode without 
committing the configuration changes.
–
Entering cancel leaves the router in the current 
configuration session without exiting or 
committing the configuration changes.
• Use the commit command to save the configuration 
changes to the running configuration file and remain 
within the configuration session.










