9.
show bgp [ vrf vrf-name ] ip-address
DETAILED STEPS
PurposeCommand or Action
configure
Step 1
Enters route policy configuration
mode and specifies the name of the
route policy to be configured.
route-policy name
Example:
RP/0/RSP0/CPU0:router(config)# route-policy costA
Step 2
Specifies the BGP extended
community attribute for cost.
set extcommunity cost { cost-extcommunity-set-name | cost-inline-extcommunity-set
} [ additive ]
Example:
RP/0/RSP0/CPU0:router(config)# set extcommunity cost cost_A
Step 3
Ends the definition of a route
policy and exits route policy
configuration mode.
end-policy
Example:
RP/0/RSP0/CPU0:router(config)# end-policy
Step 4
Enters BGP configuration mode
allowing you to configure the BGP
routing process.
router bgp as-number
Example:
RP/0/RSP0/CPU0:router(config)# router bgp 120
Step 5
Applies the cost community to the
attach point (route policy).
Do one of the following:
Step 6
•
default-information originate
•
aggregate-address address/mask-length [ as-set ] [ as-confed-set ] [
summary-only ] [ route-policy route-policy-name ]
•
address-family { ipv4 unicast | ipv4 multicast | ipv4 tunnel | ipv6 unicast
| vpnv4 unicast } redistribute connected [ metric metric-value ] [
route-policy route-policy-name ]
•
address-family { ipv4 unicast | ipv4 multicast | ipv4 tunnel | ipv6 unicast
| vpnv4 unicast } redistribute eigrp process-id [ match { external |
internal }] [ metric metric-value ] [ route-policy route-policy-name ]
•
address-family { ipv4 unicast | ipv4 multicast | ipv4 tunnel | ipv6 unicast
| vpnv4 unicast } redistribute isis process-id [ level { 1 | 1-inter-area
| 2 }] [ metric metric-value ] [ route-policy route-policy-name ]
•
address-family { ipv4 unicast | ipv4 multicast | ipv4 tunnel | ipv6 unicast
| vpnv4 unicast } redistribute ospf process-id [ match { external [ 1
| 2 ] | internal | nssa-external [ 1 | 2 ]}] [ metric metric-value ] [
route-policy route-policy-name ]
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.1.x
OL-30423-03 109
Implementing BGP
Configuring the BGP Cost Community