cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
216
Views
0
Helpful
3
Replies
Highlighted
Beginner

community - additive and remove ?

Hi All, 

 

When setting community values under a route-map (set extcommunity xxxx) with the "additive" keyword, this prevents the new entry to overwrite the existing entries. 

 

However, is there such similar commands where you want to remove a particular community under the route-map without affecting the other existing communities values. I was hoping there could be similar to " switchport trunk allowed vlan remove x" on the switches. 

 

I tried to remove one entry using " no setextcommunity" and it just removes all other entries.

 

Mac

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Expert

Re: community - additive and remove ?

Hello  Mac,

you should use a standard extcommunity-list to specify the extended community that you want to delete

 

see

https://www.cisco.com/c/m/en_us/techdoc/dc/reference/cli/nxos/commands/bgp/ip-extcommunity-list.html

 

ip extcommunity-list standard TEST permit RT:100:100

 

! note I am note sure you can match using the RT prefix otherwise use only numerical values

 

Then inside the route-map you should use

set extcommunity TEST delete

 

The idea is the same as for standard community list as explained in the other post in this thread

 

Hope to help

Giuseppe

3 REPLIES 3
Beginner

Re: community - additive and remove ?

hi, mac,

 

you can possibly try something like this:

 

ip community-list expanded remove permit 65000:10000
!
route-map remove permit 10
set comm-list remove delete

 

--tim

Beginner

Re: community - additive and remove ?

HI Tim,

Thanks for your comments.

I am referring to communitly list under a route-map.

Example as below:

route-map abcd permit 10
match ip address prefix-list xxxx
set extcommunity 12345:1111 12345:2222 12345:3333 additive

I only want to remove 12345:3333.

When I do the below commands:

route-map abcd permit 10
no set extcommunity 12345:3333

It will basically remove all the other entries as well. So sometimes, I need to reapply the whole list.

Mac
Hall of Fame Expert

Re: community - additive and remove ?

Hello  Mac,

you should use a standard extcommunity-list to specify the extended community that you want to delete

 

see

https://www.cisco.com/c/m/en_us/techdoc/dc/reference/cli/nxos/commands/bgp/ip-extcommunity-list.html

 

ip extcommunity-list standard TEST permit RT:100:100

 

! note I am note sure you can match using the RT prefix otherwise use only numerical values

 

Then inside the route-map you should use

set extcommunity TEST delete

 

The idea is the same as for standard community list as explained in the other post in this thread

 

Hope to help

Giuseppe

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards