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.

1.0.12.2/30<br />

so-1/0/0<br />

Mars<br />

1.0.0.1/30<br />

so-0/0/1<br />

so-0/0/0<br />

1.0.0.2/30<br />

Earth<br />

1.0.2.2/30<br />

so-0/0/0<br />

Venus<br />

so-0/0/1<br />

1.0.1.2/30<br />

so-0/0/1<br />

1.0.1.1/30<br />

1.0.2.1/30<br />

so-0/0/0<br />

so-1/0/0<br />

1.0.12.1/30<br />

Figure 7-1. Topology for setting the router’s source address<br />

Venus needs to know how to get back to 1.1.0.1. Venus knows how to get to 1.0.2.<br />

2, because it’s a connected network. It’s going to need a route back to 1.1.0.1, however.<br />

You can set this up by distributing lo0 addresses with an IGP, such as OSPF.<br />

Let’s say that all three routers are distributing their loopback addresses using OSPF<br />

on all the interfaces in the figure so that all three know how to reach all the loopback<br />

addresses of each other. Venus is still trying to send its echo response back to<br />

Mars and might send it out either so-0/0/0 or so-1/0/0. Either way, it gets to Mars,<br />

and the ping application sees the response.<br />

Now, if you ping 1.1.0.2 (venus-lo0) from Mars, Mars sends it out either so-0/0/0 or<br />

so-1/0/0. Venus receives the ping and replies back, again over either link. If so-0/0/0<br />

goes down for some unknown reason, the ping still works because there’s still a path<br />

using so-1/0/0. However, pinging 1.0.2.1 does not work because that interface is<br />

down.<br />

If both so-0/0/0 and so-1/0/0 go down, the ping still works, because Mars sends the<br />

packet to Earth, Earth forwards it to Venus, and Venus sees it and replies back, going<br />

through Earth. In other words, you can still get to Venus with the same IP address<br />

even if all your direct links to Venus are down.<br />

In a large network with hundreds of routers and dozens of links per router (any number<br />

of which might be down or congested), figuring out which address to ping is a<br />

hassle you can avoid by setting the router’s source address. One disadvantage of<br />

doing this, however, is that it tends to hide network outages.<br />

There are some other side benefits to using the lo0 address as the router’s source<br />

address. When you are stringing together IP addresses to use for DNS, it’s often<br />

convenient to use some hostname–interface name combination for it, such as<br />

Bellagio-ge-1-1-0-Gash2-link.jnpr.net or 0.so-1-0-0.XL2.SJC2.ALTER.NET. But if<br />

Setting the Router’s Source Address | 205<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!