Evil_TTL> show | s

BGP Communities

Category:Cisco Systems -> Routing and Switching

Example 1

ip community-list standard AAA permit 64555:1001
ip community
-list standard BBB permit 64555:1002
ip community
-list standard CCC permit 64555:1003

route
-map RM_IMPORT_AS1111 permit 10
 match community AAA BBB CCC 

The logic of this example is to match either AAA or BBB or CCC community and import the route into the BGP database if it matches either of them.

Example 2

ip community-list standard AAA permit 64555:1001 64555:1002 64555:1002

route
-map RM_IMPORT_AS1111 permit 10
 match community AAA 

The logic of this example is to match all the communities AAA and BBB and CCC, then if the route is tagged with all of them, only then it will be imported into the BGP database.

By privilege15