Adding 'send-community both' to a BGP neighbor under an address family causes the local router to attach both the standard and extended BGP community attributes to routes advertised to that neighbor, rather than stripping them (which is the default behavior); this is the mechanism that allows community-based policies configured on either side, such as no-advertise or other tagging communities set via a route-map, to actually be carried and acted upon between the two BGP speakers. Because the BGP communities attribute is an optional transitive path attribute that requires no capability negotiation between peers, enabling this outbound-only sending option is a soft configuration change that takes effect without resetting or flapping the already-established BGP session.
Community Discussion