22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

edistributed.<br />

Example 3-24. Defining a Prefix List<br />

Click here to view code image<br />

Congo# config t<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

Congo(config)# ip prefix-list default-only seq 5 permit<br />

0.0.0.0/0 eq 32<br />

Congo(config)#<br />

Note<br />

Three operators can be used in a prefix list: eq, le, <strong>and</strong> ge. The eq operator is an<br />

exact match of the prefix. The le operator specifies less than or equal to the matching<br />

prefix. Finally, the ge operator specifies greater than or equal to the matching prefix.<br />

The next step is to define a route map, called default-to-eigrp, which uses the prefix list<br />

named default-only to bring in only the 0/0 route, as shown in Example 3-25.<br />

Example 3-25. Defining a Route Map<br />

Click here to view code image<br />

Congo(config)# route-map default-to-eigrp permit 10<br />

Congo(config-route-map)# description Allows static default<br />

route<br />

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

default-only<br />

Finally, you configure EIGRP to use the route map default-to-eigrp as part of the defaultinformation<br />

originate comm<strong>and</strong>, as shown in Example 3-26.<br />

Example 3-26. Redistribution of the Default Route into EIGRP<br />

Click here to view code image<br />

Congo(config)# router eigrp DataCenter1<br />

Congo(config-router)# default-information originate routemap<br />

default-to-eigrp

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

Saved successfully!

Ooh no, something went wrong!