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

Refer to Additional BGP Configuration on page 12 for more detailed information on the<br />

commands referenced in the table above.<br />

Table 7. Filtering Routes and Applying Attributes with Route Maps<br />

Step 1<br />

Command<br />

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

<br />

Description<br />

Creates a route map and enters the Route<br />

Map Configuration mode. Range is 1 to<br />

4294967295.<br />

Step 2<br />

(see note)<br />

Select routes for the BGP interface to advertise outbound or filter inbound using the match<br />

commands.<br />

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

prefix-list <br />

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

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

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

[exact-match]<br />

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

Filters according to a prefix list.<br />

Filters according to an IPv4 ACL.<br />

Filters according to AS path.<br />

Filters according to a community list.<br />

Filters according to metric.<br />

Step 3<br />

(Optional)<br />

Apply attributes to the route using the set commands.<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 MED value. Range is 0 to<br />

4294967295.<br />

Specifies a local-preference value. Range<br />

is 0 to 4294967295.<br />

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

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

1 to 4294967295.<br />

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

for the neighbor to which the route map is<br />

to be applied.<br />

Step 7 (config-bgp-neighbor)#route-map [in |<br />

out]<br />

Applies the route map to a BGP neighbor<br />

and specifies whether it is to be applied to<br />

inbound or outbound routes.<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!