set community question

Unanswered Question
Jun 15th, 2007
User Badges:


set community is in the route-map command with BGP, like:

route-map NET-BGP-Out permit 10

match ip address 99

set community 7020:20

What is mean for set community:7020:20?

What is for the number 7020:20?



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Richard Burts Fri, 06/15/2007 - 10:06
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN


The BGP community is a value that you assign to routes. It is essentially a tag that is associated with the route so that someone else can evaluate the tag and make some processing decision based on the tag value.

In general the number before the colon in the community value (like 7020) would be your AS number. The number after the colon (like 20) is some arbitrary value that you pick.

So what this generally means is that you have agreed with some BGP neighbor that if they see routes from you with community (tag) value of 7020:20 that they should take some particular action about those routes.



mohammedmahmoud Fri, 06/15/2007 - 10:29
User Badges:
  • Green, 3000 points or more

Hi Ben,

Just to add a tiny detail on the prefect explaination by Rick, to add the community to the already existing communities you must use the "additive" keyword, in your example if the matched (in the ACL 99) routes has already got any communities it will be replaced with the "7020:20".


Mohammed Mahmoud.


This Discussion