28.06.2014 Views

Discussion

Discussion

Discussion

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.

Unlike OSPF, for which the JUNOS software has an automatic costing algorithm<br />

based on interface bandwidth, for IS-IS JUNOS software assigns a default metric of<br />

10 to all IS-IS interfaces. If this default is left unchanged, the shortest paths calculated<br />

by IS-IS are essentially shortest-hop paths.<br />

With IS-IS enabled and metrics configured correctly, the routing table should have<br />

the same number of IS-IS entries as OSPF entries for each destination, and they<br />

should point to the same outgoing next hops. That is, if there is one OSPF route to a<br />

prefix, there should be one IS-IS route to the same prefix and with the same outgoing<br />

interface. If there are two OSPF routes to a prefix, there should be two IS-IS<br />

routes, and so on.<br />

aviva@Router3> show route<br />

inet.0: 28 destinations, 48 routes (28 active, 0 holddown, 0 hidden)<br />

Restart Complete<br />

+ = Active Route, - = Last Active, * = Both<br />

10.1.1.0/24 *[OSPF/10] 00:16:20, metric 65<br />

via so-0/2/0.0<br />

> via so-0/2/1.0<br />

[IS-IS/18] 00:16:08, metric 126<br />

to 10.1.2.1 via so-0/2/0.0<br />

> to 10.1.6.1 via so-0/2/1.0<br />

10.1.3.0/24 *[OSPF/10] 00:16:20, metric 65<br />

via so-0/2/0.0<br />

> via so-0/2/2.0<br />

[IS-IS/18] 00:16:08, metric 126<br />

> to 10.1.2.1 via so-0/2/0.0<br />

to 10.1.7.2 via so-0/2/2.0<br />

...<br />

The output shows that for each destination prefix, OSPF and IS-IS have the same<br />

number of routes and the same outgoing interfaces. The preferred route for each prefix<br />

(marked with an *) is the OSPF route. If there are equal-cost paths, the next hop<br />

chosen by OSPF (>) is not always the same as that chosen by IS-IS. This will not<br />

cause routing problems as long as the equal-cost paths are consistent between the<br />

protocols.<br />

At this point, you change the route preference using the set protocols ospf<br />

preference command shown in this recipe. Here, you increase the OSPF preference<br />

to a value higher than any of the IS-IS preferences because OSPF is the protocol that<br />

you are migrating away from. You could instead change the IS-IS route preference so<br />

that its routes are more preferred than OSPF. However, leaving the IS-IS preference<br />

at its default value simplifies any future addition of routers to the network. Another<br />

alternative at this point would be to delete OSPF from the configuration altogether.<br />

However, you should leave it in for a short period of time to test the migration. If<br />

there are any problems and you need to back out of the migration, all you need to do<br />

is return to the default OSPF preference value:<br />

[edit protocols ospf]<br />

aviva@Router3# delete preference<br />

aviva@Router3# commit<br />

276 | Chapter 8: IP Routing<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!