Subject: Re: IP aliases and access on the same system
To: Richard Pennington <rich@introl.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 09/15/2001 21:28:56
On Sat, 15 Sep 2001, Richard Pennington wrote:

> > Give some specific examples.

I forgot to have you send "netstat -rn -f inet". (But you don't need to
now. See below.)

> I can access all IPs from other systems on the network, and people are 
> accessing them from the outside: they are web servers.
> 
> But if I try to access the IPs from the host system, I get e.g.:
> 
> [/usr/pkg/lib/perl5/5.6.0/auto/Getopt/Long] code% ping 192.124.43.89
> PING www.introl.com (192.124.43.89): 56 data bytes
> ping: sendto: Host is down
> ping: sendto: Host is down
> ...
> 
> It's as if these IPs are defined for all systems *except* the system that 
> defines them.
> 
> Is there some way to make them available to this system?

Yes.

route add $addr 127.0.0.1

route add 192.124.43.89 127.0.0.1

   Jeremy C. Reed
   http://www.reedmedia.net/