You can configure a route map instance that matches on a specified community access control list (ACL).
device# configure terminal
device(config)# ip community-list standard 1 permit 123:2
device(config)# route-map mycommroutemap1 permit 10
device(config-route-map-mycommroutemap1/permit/10)# match community 1
This example summarizes the commands in this procedure.
device# configure terminal device(config)# ip community-list standard 1 permit 123:2 device(config)# route-map mycommroutemap1 permit 10 device(config-route-map-mycommroutemap1/permit/10)# match community 1