Troubleshooting guide
Table 10. Deleting a Community
(config)#ip
prefix-list <name> seq <number>
[deny | permit] <network ipv4 address/length>
[ge | le] <value>
Creates a prefix list to define the routes
from which a community is to be deleted.
Range is 1 to 4294967294.
Step 2
(config)#ip community-list <name> Creates a community list for a BGP route
map use. The communities defined in
this list will be deleted.
(config-comm-list)#per
mit [<value> | internet |
local-as | no-advertise | no-export]
Adds an entry to the community list that
defines the community string in the
community attribute that should be
deleted.
(config-comm-list)#ex
it Exits the Community List Configuration
mode.
(config)#rout
e-map <name> [deny | permit]
<number>
If one does not already exist, creates a
route map. Range is 1 to 4294967295.
(config-route-map)#mat
ch ip address
prefix-list <name>
Specifies the routes from which a
community is to be deleted. Reference
the <name> of the prefix list created in
Step 1 to add it to the route map entry.
(config-route-map)#se
t comm-list <name>
delete
Specifies a list of communities to delete.
Reference the <name> of the community
list created in Step 2.
Step 8 (config-route-map)#ex
it Exits Route Map Configuration mode.
Step 9 (config)#rout
er bgp <AS number> Enters BGP Configuration mode. Range
is 1 to 4294967295.
Step 10 (config-bgp)#n
eighbor <ipv4 address> Enters BGP Neighbor Configuration
mode for the neighbor to which the route
map is to be applied.
Step 11 (config-bgp-neighbor)#se
nd-community
standard
Enables this AOS device to accept a
community attribute or add a community
attribute to any advertisement sent by
this peer.
Step 12 (config-bgp-neighbor)#rout
e-map <name> in Applies the route map to the BGP
neighbor as an inbound policy.
Step 13 (config-bgp-neighbor)#do writ
e Saves the configuration.
Configuration Command Summary
61200860L1-29.4E Copyright © 2012 ADTRAN, Inc. 65
Command Description
Step 1
Step 3
Step 4
Step 5
Step 6
Step 7
Refer to Prefix List on page 21 for more information on creating prefix lists. Refer to
Deleting Communities from a Route on page 15 for more information on the set comm-list
delete command.