04.02.2014 Views

View - ADTRAN Support Community

View - ADTRAN Support Community

View - ADTRAN Support Community

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Configuration Command Summary<br />

Lists referenced in Step 2 (prefix, IPv4 ACL, AS path, and community) first must be created<br />

separately before they can be used within the route map for filtering. Refer to Route Map on<br />

page 23 for additional information on route maps and related commands used to filter<br />

routes and apply attributes.<br />

Table 8. Defining a <strong>Community</strong> Policy<br />

Command<br />

Description<br />

Step 1 (config)#ip community-list Creates a community list for a BGP route<br />

map to use. The communities defined in<br />

this command should match an existing<br />

community string that the AOS device is<br />

receiving.<br />

Step 2 (config-comm-list)#[permit | deny] [ |<br />

internet | local-as | no-advertise | no-export]<br />

Step 3<br />

Step 4<br />

Step 5<br />

(config-comm-list)#exit<br />

(config)#route-map [deny | permit]<br />

<br />

(config-route-map)#match community <br />

[exact-match]<br />

Adds an entry to the community list that<br />

either permits or denies BGP routes<br />

containing the specified community<br />

string in the community attribute.<br />

Exits the <strong>Community</strong> List Configuration<br />

mode.<br />

Creates a route map, if one does not<br />

already exist, to reference the<br />

community list.<br />

References the of the<br />

community list created in Step 1 to add it<br />

to the route map entry. The exact-match<br />

keyword is optional and specifies that the<br />

route map must match all configured<br />

community strings in the specified list<br />

exactly.<br />

Use set commands to configure any policies to be applied to the community.<br />

(config-route-map)#set as-path prepend<br />

[last-as] <br />

(config-route-map)#set metric <br />

(config-route-map)#set local-preference<br />

<br />

Prepends AS hops to the selected<br />

route(s). The last-as keyword is optional<br />

and specifies to repeat the last AS in a<br />

route up to 10 times.<br />

Specifies a MULTI_EXIT_DISC value for<br />

the selected route(s).Range is 0 to<br />

4294967295.<br />

Changes the LOCAL_PREF value for<br />

selected route(s). Range is 0 to<br />

4294967295.<br />

Step 6 (config-route-map)#exit Exits Route Map Configuration mode.<br />

Step 7 (config)#router bgp Enters BGP Configuration mode.Range<br />

is 1 to 4294967295.<br />

62 Copyright © 2012 <strong>ADTRAN</strong>, Inc. 61200860L1-29.4E

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!