[c-nsp] Community tag Question..

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


Sorry, this was the link I meant to post:

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-3s/irg-xe-3s-book/irg-route-map-continue.html#d202969e451a1635

On Mon, Jan 12, 2015 at 4:12 PM, Charles van Niman <charles at phukish.com> wrote:
> 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