Cisco Systems OL-14356-01 Network Router User Manual


 
Implementing BGP on Cisco IOS XR Software
How to Implement BGP on Cisco IOS XR Software
RC-56
Cisco IOS XR Routing Configuration Guide
OL-14356-01
Tuning the BGP Best-Path Calculation
Perform this task to change the default BGP best-path calculation behavior.
SUMMARY STEPS
1. configure
2. router bgp as-number
3. bgp bestpath med missing-as-worst
4. bgp bestpath med always
5. bgp bestpath med confed
6. bgp bestpath as-path ignore
7. bgp bestpath compare-routerid
8. end
or
commit
Step 6
weight weight-value
Example:
RP/0/RP0/CPU0:router(config-bgp-nbr-af)# weight
41150
Assigns a weight to all routes learned through the neighbor.
Step 7
end
or
commit
Example:
RP/0/RP0/CPU0:router(config-bgp-nbr-af)# end
or
RP/0/RP0/CPU0:router(config-bgp-nbr-af)# 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.
Command or Action Purpose