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-86
Cisco IOS XR Routing Configuration Guide
OL-14356-01
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
Step 5
address-family {ipv4 unicast | ipv4 multicast |
ipv4 labeled-unicast | ipv4 tunnel | ipv4 mdt |
ipv6 unicast | ipv6 multicast | ipv6
labeled-unicast | vpnv4 unicast | vpnv6
unicast}
Example:
RP/0/RP0/CPU0:router(config-bgp-nbr)#
address-family ipv4 unicast
Enters neighbor address family configuration mode for the
specified address family.
Step 6
send-community-ebgp
Example:
RP/0/RP0/CPU0:router(config-bgp-nbr-af)#
send-community-ebgp
Specifies that the router send community attributes (which
are disabled by default for eBGP neighbors) to a specified
eBGP 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