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.

default-metric 100<br />

The process begins by defining a prefix list, as demonstrated in Example 3-61, which is then<br />

used by a route map referenced by the default-information originate comm<strong>and</strong>.<br />

Example 3-61. Defining a Prefix List for Redistribution<br />

Click here to view code image<br />

Egypt# config t<br />

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

CNTL/Z.<br />

Egypt(config)# ip prefix-list connected-interfaces seq 15<br />

permit 10.100.0.0/16 ge<br />

17<br />

Egypt(config)#<br />

Next, define a route map, called connected-to-OSPF, which uses the prefix list named<br />

connected-interfaces, to bring in only the 10.100.0.0/16 or longer routes, as demonstrated<br />

in Example 3-62.<br />

Example 3-62. Defining a Route Map for Redistribution<br />

Click here to view code image<br />

Egypt(config)# route-map connected-to-OSPF permit 10<br />

Egypt(config-route-map)# description allows local<br />

interfaces<br />

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

connected-interfaces<br />

Finally, configure OSPF to use the route map connected-to-OSPF as part of the<br />

redistribute direct comm<strong>and</strong>, as demonstrated in Example 3-63.<br />

Example 3-63. Configuring Redistribution into OSPF<br />

Click here to view code image<br />

Egypt(config)# router <strong>os</strong>pf DataCenter1<br />

Egypt(config-router)# redistribute direct route-map<br />

connected-to-OSPF<br />

Now the new routes show up in the neighboring routers, as highlighted in Example 3-64. In

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

Saved successfully!

Ooh no, something went wrong!