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.

Solution<br />

After configuring both OSPF and IS-IS on the routers you are migrating, change the<br />

route preference on the OSPF routes to be higher than the IS-IS preference:<br />

[edit protocols ospf]<br />

aviva@Router3# set preference 175<br />

<strong>Discussion</strong><br />

While you can change the preference values for all dynamic routing protocols and<br />

user-configured routes using the set preference and set external-preference commands<br />

when configuring the protocols, it is generally not a good idea. The changes<br />

you make affect only the router you are configuring, and the local router will end up<br />

with a different idea of relative route preferences than the other routers on the network.<br />

Also, changing route preferences could affect which routes become active,<br />

which, in turn, would affect which routes are used to forward traffic.<br />

However, one situation where you might want to change route preferences is when<br />

migrating IGPs. In this recipe, we are migrating from using OSPF as the IGP to using<br />

IS-IS. A preference of 175 for OSPF is greater than that of any IS-IS routes. From<br />

Table 8-2, you see that IS-IS internal routes have a preference of either 15 (for Level 1)<br />

or 18 (for Level 2), and external routes have a preference of 160 (for Level 1) or 165<br />

(for Level 2).<br />

The command shown in this recipe is actually the last step in an OSPF-to-IS-IS<br />

migration strategy. The first step is to configure IS-IS on the same interfaces that are<br />

running OSPF (see Recipe 11.1), then verify that IS-IS adjacencies are established on<br />

the same interfaces that have OSPF adjacencies:<br />

aviva@Router3> show isis adjacency<br />

Interface System L State Hold (secs) SNPA<br />

so-0/2/0.0 R1 2 Up 20<br />

so-0/2/1.0 R2 2 Up 21<br />

so-0/2/2.0 R4 2 Up 19<br />

so-0/2/3.0 R10 2 Up 19<br />

aviva@Router3> show ospf neighbor<br />

Address Interface State ID Pri Dead<br />

10.1.2.1 so-0/2/0.0 Full 10.10.255.1 128 36<br />

10.1.6.1 so-0/2/1.0 Full 10.10.255.2 128 38<br />

10.1.7.2 so-0/2/2.0 Full 10.10.255.4 128 34<br />

10.1.8.2 so-0/2/3.0 Full 10.10.255.10 128 38<br />

You then need to ensure that IS-IS calculates the same paths as OSPF. The default IS-IS<br />

metrics must be changed so that they give the same relative cost to each path as does<br />

OSPF. You can do this by manually assigning appropriate interface metrics or by configuring<br />

a reference bandwidth. (See Recipe 11.10 for IS-IS and Recipe 12.11 for OSPF.)<br />

Changing Route Preferences to Migrate to Another IGP | 275<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!