• address-family { ipv4 | ipv6 } unicast redistribute static [ metric metric-value ] [ route-policy
route-policy-name ]
• address-family { ipv4 | ipv6 } unicast network { ip-address/prefix-length | ip-address mask
} [ route-policy route-policy-name ]
• neighbor ip-address remote-as as-number address-family { ipv4 | ipv6 } unicast
• route-policy route-policy-name { in | out }
8. commit
9. show bgp 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:
Step 2
RP/0/RP0/CPU0:router(config)# route-policy costA
Specifies the BGP extended community attribute for cost.
set extcommunity cost { cost-extcommunity-set-name |
cost-inline-extcommunity-set } [ additive ]
Step 3
Example:
RP/0/RP0/CPU0:router(config)# set extcommunity cost
cost_A
Ends the definition of a route policy and exits route policy
configuration mode.
end-policy
Example:
Step 4
RP/0/RP0/CPU0:router(config)# end-policy
Enters BGP configuration mode allowing you to configure
the BGP routing process.
router bgp as-number
Example:
Step 5
RP/0/RP0/CPU0:router(config)# router bgp 120
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 | 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 ]
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
73
Implementing BGP
Configuring the BGP Cost Community