Troubleshooting guide
Configuration Command Summary
62 Copyright © 2012 ADTRAN, Inc. 61200860L1-29.4E
Lists referenced in Step 2 (prefix, IPv4 ACL, AS path, and community) first must be created
separately before they can be used within the route map for filtering. Refer to Route Map on
page 23 for additional information on route maps and related commands used to filter
routes and apply attributes.
Table 8. Defining a Community Policy
Command Description
Step 1
(config)#ip community-list <name> Creates a community list for a BGP route
map to use. The communities defined in
this command should match an existing
community string that the AOS device is
receiving.
Step 2 (config-comm-list)#[permit | deny] [<value> |
internet | local-as | no-advertise | no-export]
Adds an entry to the community list that
either permits or denies BGP routes
containing the specified community
string in the community attribute.
(config-comm-list)#exit Exits the Community List Configuration
mode.
Step 3 (config)#route-map <name> [deny | permit]
<number>
Creates a route map, if one does not
already exist, to reference the
community list.
Step 4 (config-route-map)#match community <name>
[exact-match]
References the <name> of the
community list created in Step 1 to add it
to the route map entry. The exact-match
keyword is optional and specifies that the
route map must match all configured
community strings in the specified list
exactly.
Step 5 Use set commands to configure any policies to be applied to the community.
(config-route-map)#set as-path prepend
<number> [last-as] <number>
Prepends AS hops to the selected
route(s). The last-as keyword is optional
and specifies to repeat the last AS in a
route up to 10 times.
(config-route-map)#set metric <value> Specifies a MULTI_EXIT_DISC value for
the selected route(s).Range is 0 to
4294967295.
(config-route-map)#set local-preference
<value>
Changes the LOCAL_PREF value for
selected route(s). Range is 0 to
4294967295.
Step 6 (config-route-map)#exit Exits Route Map Configuration mode.
Step 7 (config)#router bgp <AS number> Enters BGP Configuration mode.Range
is 1 to 4294967295.