
Purpose
Command or Action
•
send-extended-community-ebgp
Example:
RP/0/RP0/CPU0:router(config-bgp-nbr-af)#
send-community-ebgp
or
RP/0/RP0/CPU0:router(config-bgp-nbr-af)#
send-extended-community-ebgp
commit
Step 7
Configuring the BGP Cost Community
Perform this task to configure the BGP cost community.
BGP receives multiple paths to the same destination and it uses the best-path algorithm to decide which is the
best path to install in RIB. To enable users to determine an exit point after partial comparison, the cost
community is defined to tie-break equal paths during the best-path selection process.
SUMMARY STEPS
1.
configure
2.
route-policy name
3.
set extcommunity cost
{
cost-extcommunity-set-name
|
cost-inline-extcommunity-set
} [
additive
]
4.
end-policy
5.
router bgp as-number
6.
Do one of the following:
•
default-information originate
•
aggregate-address address/mask-length
[
as-set
] [
as-confed-set
] [
summary-only
] [
route-policy
route-policy-name
]
•
address-family
{
ipv4
|
ipv6
}
unicast
redistribute connected
[
metric metric-value
] [
route-policy route-policy-name
]
•
address-family
{
ipv4
|
ipv6
}
unicast
redistribute eigrp process-id
[
match
{
external
|
internal
}] [
metric metric-value
] [
route-policy route-policy-name
]
•
address-family
{
ipv4
|
ipv6
}
unicast
redistribute isis process-id
[
level
{
1
|
1-inter-area
|
2
}] [
metric metric-value
] [
route-policy route-policy-name
]
•
address-family
{
ipv4
|
ipv6
}
unicast
redistribute ospf process-id
[
match
{
external
[
1
|
2
] |
internal
|
nssa-external
[
1
|
2
]}] [
metric metric-value
] [
route-policy
route-policy-name
]
7.
Do one of the following:
•
address-family
{
ipv4
|
ipv6
}
unicast
redistribute ospfv3 process-id
[
match
{
external
[
1
|
2
] |
internal
|
nssa-external
[
1
|
2
]}] [
metric metric-value
] [
route-policy
route-policy-name
]
•
address-family
{
ipv4
|
ipv6
}
unicast redistribute rip
[
metric metric-value
] [
route-policy
route-policy-name
]
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
72
Implementing BGP
Configuring the BGP Cost Community