Configure BGP4 Route Matching on a Community ACL

You can configure a route map instance that matches on a specified community access control list (ACL).

Procedure

  1. Access global configuration mode.
    device# configure terminal
  2. Create a community ACL that permits traffic.
    device(config)# ip community-list standard 1 permit 123:2
    This example creates a standard community ACL named "1" that permits traffic for network 2 in autonomous system 123.
  3. Create a route map instance and allow a matching pattern.
    device(config)# route-map mycommroutemap1 permit 10
    This example creates a route map instance called mycommroutemap1 and allows a matching pattern of 5.
  4. Match the community ACL in the configured route-map instance.
    device(config-route-map-mycommroutemap1/permit/10)# match community 1
    This example matches the ACL named 1 in the route map instance.

Example

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