Chapter 50
| IP Routing Commands
Policy-based Routing for BGP
– 1166 –
set comm-list delete This command removes communities from the community attribute of inbound or
outbound routing messages. Use the no form to remove this entry from a route
map.
Syntax
[no] set comm-list {1-99 | 100-500 | community-list-name} [delete]
1-99 – Standard community list number that identifies one or more groups
of communities.
100-500 – Expanded community list number that identifies one or more
groups of communities.
community-list-name – Name of standard or expanded community list.
(Maximum length: 32 characters, no spaces or other special characters)
Command Mode
Route Map
Command Usage
When using the ip community-list command to configure a community access list,
each entry of a standard community list should list only one community.
Otherwise, the set comm-list delete command will not succeed. For example, in
order to be able to delete communities 100 and 200, you must create two separate
entries with the ip community-list command.
Example
Console(config)#route-map RD permit 10
Console(config-route-map)#match peer 192.168.0.77
Console(config-route-map)#set comm-list 10:01 delete
Console(config-route-map)#exit
Console(config)#route-map RD permit 11
Console(config-route-map)#match peer 192.168.0.99
Console(config-route-map)#set comm-list 20:01 delete
Console(config-route-map)#
set community This command sets the community attributes of routing messages. Use the no form
to remove this entry from a route map.
Syntax
set community
[AA:NN...]
[
additive
{[
AA
:
NN...
] [
internet
] [
local-as
] [
no-advertise
] [
no-export
]}
[internet [[AA:NN...] [local-as] [no-advertise] [no-export]]
[local-as [[AA:NN...] [no-advertise] [no-export]]
[no-advertise [AA:NN...] [no-export]]
[no-export [AA:NN...]]
[none]
no set community