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.

Destination: 192.168.220.0/24, Local: 192.168.220.1,<br />

Broadcast: 192.168.220.3<br />

Addresses, Flags: Primary Preferred Is-Preferred Is-Primary<br />

Destination: 192.168.220.0/24, Local: 192.168.220.2,<br />

Broadcast: 192.168.220.3<br />

It’s helpful to expand the configuration a bit to illustrate how the source addresses<br />

are used. Let’s say we have:<br />

[edit interfaces fe-0/0/0 unit 0 family inet]<br />

address 192.168.220.1/24;<br />

address 192.168.220.2/24 {<br />

primary;<br />

preferred;<br />

}<br />

address 192.168.222.1/24;<br />

address 192.168.222.2/24 {<br />

preferred;<br />

}<br />

IP traffic bound for 192.168.220.10 uses 192.168.220.2 as the source address because<br />

this is the preferred address. Traffic for, say, 100.0.0.1 also uses 192.168.220.2 (if<br />

there is a route to that network pointing out fe-0/0/0) because this is the interface’s<br />

primary address. Traffic for 192.168.222.10 uses 192.168.222.2 as the source address,<br />

again because this is the interface’s preferred address.<br />

Another situation is to have multiple addresses on the loopback interface, which you<br />

might want for any number of reasons. You might want a public address for the<br />

router’s IP address, a private one for management access, and 127.0.0.1 as the traditional<br />

loopback address.<br />

Yet another reason to have multiple address on an interface is to increase the number<br />

of IP addresses on an Ethernet network without renumbering devices that are<br />

already there. While this is often not considered good practice, sometimes it’s the<br />

easiest way to deal with the growing number of addresses. Say you have interface<br />

fe-0/0/0 with IP address 205.134.233.254/24. When you’ve used all the addresses in<br />

that /24 address space, you can either renumber all 250 or so devices on that network,<br />

grow that network (which requires planning ahead; in this case you could just<br />

make the network a /23 if you’re not using 205.134.232.0/24 for anything else), or<br />

just add another network. As an interim measure, you can just add the second<br />

address for the new network address space to the interface and set the desired one to<br />

be the primary and preferred address.<br />

7.11 Using the Management Interface<br />

Problem<br />

You want to enable out-of-band management access to the router.<br />

212 | Chapter 7: Router Interfaces<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!