The router supports the BGP extended community
attribute defined in
Internet draft BGP Extended Communities
Attribute— draft-ietf-idr-bgp-ext-communities-07.txt (February
2004 expiration). This attribute enables the definition of a type
of IP extended community and extended community list unrelated to
the community list that uses regular expressions.
![]() |
Note: IETF drafts are valid for only six months from the date of issuance. They must be considered as works in progress. For the latest drafts, please see the IETF Web site at http://www.ietf.org. |
BGP devices can use the extended community attribute to control routes much like they use the community attribute to determine routes that they accept, reject, or redistribute. A BGP device can append the extended community attribute to a route that does not have the attribute before it advertises the route. For routes that do have the attribute, BGP can modify the attribute.
ip extcommunity-list
- host1(config)#ip extcommunity-list boston1
permit rt 100:2 rt 100:3 rt 100:4
- host1(config)#route-map marengo permit 10
- host1(config-route-map)#match extcommunity
boston1
A route matches this community list only if it belongs to at least all three communities in extended community list boston1: communities 100:2, 100:3, and 100:4.
match extcommunity
- host1(config-route-map)#match extcommunity
topeka10
set extcommunity
- host1(config)#route-map 1
- host1(config-route-map)#set extcommunity rt
10.10.10.2:325
show ip extcommunity-list
host1#show ip extcommunity-list
IP Extended Community List dresden1:
permit soo 10.10.10.10:15
IP Extended Community List bonn:
deny rt 12:12