07-11-2019 08:06 AM
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
Solved! Go to Solution.
07-11-2019 11:14 AM
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
07-11-2019 10:00 AM - edited 07-11-2019 10:00 AM
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
07-11-2019 11:13 AM
07-11-2019 11:14 AM
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
02-27-2025 10:44 PM - edited 02-27-2025 10:44 PM
the same with me, apparently you will need to remove all entries first and then adding back all the other entries except for the extcommunity you want to exclude
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide