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 />

Table 9. Advertising a BGP <strong>Community</strong><br />

Step 1<br />

Step 2<br />

Step 3<br />

Step 4<br />

Command<br />

(config)#ip prefix-list seq <br />

[deny | permit] <br />

[ge | le] <br />

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

<br />

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

prefix-list <br />

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

[add | internet | local-as | no-advertise |<br />

no-export]<br />

Description<br />

Creates a prefix list to define the routes<br />

that are to be tagged with a community<br />

string. Range is 1 to 4294967294.<br />

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

already exist) to reference the prefix list.<br />

Range is 1 to 4294967294.<br />

References the of the prefix list<br />

created in Step 1 to adds it to the route<br />

map entry.<br />

Sets the community attribute to either a<br />

privately defined community or one of<br />

the well-known community numbers for<br />

routes serviced by this route map.<br />

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

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

is 1 to 4294967295.<br />

Step 7 (config-bgp)#neighbor Enters BGP Neighbor Configuration<br />

mode for the neighbor to which the route<br />

map is to be applied.<br />

Step 8<br />

(config-bgp-neighbor)#send-community<br />

standard<br />

Enables this AOS device to accept a<br />

community attribute or add a community<br />

attribute to any advertisement sent by<br />

this peer.<br />

Step 9 (config-bgp-neighbor)#route-map out Applies the route map to the BGP<br />

neighbor as an outbound policy.<br />

Step 10 (config-bgp-neighbor)#do write Saves the configuration.<br />

Refer to Prefix List on page 21 for more information on creating prefix lists. Refer to<br />

Defining a <strong>Community</strong> Policy on page 14 for more information on the set community<br />

command.<br />

64 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!