community is defined to tie-break equal paths during the best-path selection process. Perform this task to
configure the BGP cost community.
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 ]
•
redistribute connected [ metric metric-value ] [ route-policy route-policy-name ]
•
process-id [ match { external | internal }] [ metric metric-value ] [ route-policy
route-policy-name ]
•
redistribute isis process-id [ level { 1 | 1-inter-area | 2 }] [ metric metric-value ] [ route-policy
route-policy-name ]
•
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:
•
redistribute ospfv3 process-id [ match { external [ 1 | 2 ] | internal | nssa-external [ 1 |
2 ]}] [ metric metric-value ] [ route-policy route-policy-name ]
•
redistribute rip [ metric metric-value ] [ route-policy route-policy-name ]
•
redistribute static [ metric metric-value ] [ route-policy route-policy-name ]
•
network { ip-address/prefix-length | ip-address mask } [ route-policy route-policy-name ]
•
neighbor ip-address remote-as as-number
•
route-policy route-policy-name { in | out }
8.
commit
9.
show bgp ip-address
DETAILED STEPS
Step 1
configure
Step 2
route-policy name
BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x
52
Implementing BGP
BGP Cost Community