Troubleshooting guide
Table 9. Advertising a BGP Community
(config)#ip prefix-l
ist <name> seq <number>
[deny | permit] <network ipv4 address/length>
[ge | le] <value>
Creates a prefix list to define the routes
that are to be tagged with a community
string. Range is 1 to 4294967294.
(config)#route-map <n
ame> [deny | permit]
<number>
Creates a route map (if one does not
already exist) to reference the prefix list.
Range is 1 to 4294967294.
(config-route-map)#matc
h ip address
prefix-list <name>
References the <name> of the prefix list
created in Step 1 to adds it to the route
map entry.
(config-route-map)#set
community <value>
[add | internet | local-as | no-advertise |
no-export]
Sets the community attribute to either a
privately defined community or one of
the well-known community numbers for
routes serviced by this route map.
Step 5 (config-route-map)#exit Exits Route Map Configuration mode.
Step 6 (config)#ro
uter bgp <AS number> Enters BGP Configuration mode. Range
is 1 to 4294967295.
Step 7 (config-bgp)#ne
ighbor <ipv4 address> Enters BGP Neighbor Configuration
mode for the neighbor to which the route
map is to be applied.
Step 8 (config-bgp-neighbor)#s
end-community
standard
Enables this AOS device to accept a
community attribute or add a community
attribute to any advertisement sent by
this peer.
Step 9 (config-bgp-neighbor)#route-map <n
ame> out Applies the route map to the BGP
neighbor as an outbound policy.
Step 10 (config-bgp-neighbor)#do write Saves the configuration.
Configuration Command Summary
64 Copyright © 2012 ADTRAN, Inc. 61200860L1-29.4E
Command Description
Step 1
Step 2
Step 3
Step 4
Refer to Prefix List on page 21 for more information on creating prefix lists. Refer to
Defining a Community Policy on page 14 for more information on the set community
command.