
Purpose
Command or Action
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 126
Step 2
Directs the BGP software to consider a missing MED
attribute in a path as having a value of infinity, making this
path the least desirable path.
bgp bestpath med missing-as-worst
Example:
RP/0/RP0/CPU0:router(config-bgp)# bgp bestpath med
missing-as-worst
Step 3
Configures the BGP speaker in the specified autonomous
system to compare MEDs among all the paths for the prefix,
bgp bestpath med always
Example:
Step 4
regardless of the autonomous system from which the paths
are received.
RP/0/RP0/CPU0:router(config-bgp)# bgp bestpath med
always
Enables BGP software to compare MED values for paths
learned from confederation peers.
bgp bestpath med confed
Example:
Step 5
RP/0/RP0/CPU0:router(config-bgp)# bgp bestpath med
confed
Configures the BGP software to ignore the autonomous
system length when performing best-path selection.
bgp bestpath as-path ignore
Example:
Step 6
RP/0/RP0/CPU0:router(config-bgp)# bgp bestpath
as-path ignore
Configure the BGP speaker in the autonomous system to
compare the router IDs of similar paths.
bgp bestpath compare-routerid
Example:
Step 7
RP/0/RP0/CPU0:router(config-bgp)# bgp bestpath
compare-routerid
commit
Step 8
Indicating BGP Back-door Routes
Perform this task to set the administrative distance on an external Border Gateway Protocol (eBGP) route to
that of a locally sourced BGP route, causing it to be less preferred than an Interior Gateway Protocol (IGP)
route.
SUMMARY STEPS
1.
configure
2.
router bgp as-number
3.
address-family
{
ipv4
|
ipv6
}
unicast
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
55
Implementing BGP
Indicating BGP Back-door Routes