09.12.2012 Views

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

asbr-b2(config)#Access-list 1 permit 12.14.116.0<br />

asbr-b2(config)#Access-list 2 permit 172.16.0.0 0.0.255.255<br />

NOTE<br />

Route-maps are used extensively for controlling BGP routing announcements. This<br />

application, however, is way beyond <strong>the</strong> scope of this book. For more information on<br />

using route-maps and BGP, check <strong>the</strong> additional resources section at <strong>the</strong> end of <strong>the</strong><br />

chapter.<br />

Now, we configure <strong>the</strong> route-map. The first line permits any route announcement<br />

that matches any address in access-list 2 <strong>to</strong> be redistributed with an OSPF type 2<br />

metric:<br />

asbr-b2(config)#route-map grinder permit 10<br />

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

asbr-b2(config-route-map)#metric-type 2<br />

The second line configures <strong>the</strong> route-map "grinder" <strong>to</strong> deny any route<br />

announcement that matches any address in <strong>the</strong> access list 1:<br />

asbr-b2(config)#route-map grinder 10<br />

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

After <strong>the</strong> map is completed, it just needs <strong>to</strong> be applied <strong>to</strong> <strong>the</strong> OSPF process:<br />

asbr-a2(config-router)#$redistribute eigrp 99 route-map grinder<br />

Here are <strong>the</strong> basic match and set statements you can use <strong>to</strong> control route<br />

redistributions:<br />

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

Saved successfully!

Ooh no, something went wrong!