[c-nsp] Community tag Question..

Charles van Niman charles at phukish.com
Mon Jan 12 17:12:24 EST 2015


I think you're looking for the "additive" argument for your set community line.

http://www.cisco.com/web/techdoc/dc/reference/cli/nxos/commands/bgp/set_community.html

/Charles

On Mon, Jan 12, 2015 at 3:44 PM, CiscoNSP List
<cisconsp_list at hotmail.com> wrote:
> Hi Everyone,
>
> Question on route-maps/community tagging (And "continue") when receiving routes from upstream:
>
> I want to tag one route(default route) with a specific community tag + other tags, and then also tag all routes(Including default route) with the same community tags EXCEPT the one applied to default only.
>
> i.e.
>
> 0.0.0.0 I want tagged with 1234:3000 1234:3010 1234:5000 1234:11000
>
> and ALL routes (Including default), I want tagged with 1234:3000 1234:3010 1234:11000
>
> If I apply the above via route-map:
>
> ip access-list standard GRT_DEFAULT_ROUTE
>  permit 0.0.0.0
>
>
> route-map UPSTREAM_A-IN permit 20
>  match ip address GRT_DEFAULT_ROUTE
>  set community 1234:3000 1234:3010 1234:5000 1234:11000
>  continue
> route-map UPSTREAM_A permit 30
>  set community 1234:3000 1234:3010 1234:11000
>
> All prefixes(including default) are tagged with 1234:3000 1234:3010 1234:11000, if I remove the "permit 30" section, default route is tagged with 1234:3000 1234:3010 1234:5000 1234:11000.
>
> So, the "permit 30" section overwrites the tags applied by "permit 20" - Is there anyway to achieve what Im trying to do?
>
> NB - This is on an ASR1K
>
> Cheers.
>
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/


More information about the cisco-nsp mailing list