Subject: Re: IP aliases and access on the same system
To: Jeremy C. Reed <reed@reedmedia.net>
From: Richard Pennington <rich@introl.com>
List: netbsd-help
Date: 09/15/2001 23:21:01
On Saturday 15 September 2001 11:11 pm, Jeremy C. Reed wrote:
> On Sat, 15 Sep 2001, Richard Pennington wrote:
> > I've set up a few Ip aliases for my ex0 interface on my i386 1.5 system.
>
> Show us:
>  ifconfig -A ex0
>
> > I can access the IPs from other systems (by IP and name) but can't
> > access them from the host system. Is there a way to tell the host
>
> What do you mean by "access"? Show us an example.
>
> > system that these IP addresses should map to "localhost"?
>
> You shouldn't have to do this.
>
> Give some specific examples.
>
>    Jeremy C. Reed
>    http://www.reedmedia.net/

Here's what I get from ifconfig:

ifconfig: -A is deprecated
ex0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:01:02:ec:ff:1d
        media: Ethernet 100baseTX full-duplex
        status: active
        inet 192.124.43.90 netmask 0xffffffe0 broadcast 192.124.43.95
        inet alias 192.124.43.89 netmask 0xffffffe0 broadcast 192.124.43.95
        inet alias 192.124.43.88 netmask 0xffffffe0 broadcast 192.124.43.95
        inet alias 192.124.43.87 netmask 0xffffffe0 broadcast 192.124.43.95
        inet alias 192.124.43.70 netmask 0xffffffe0 broadcast 192.124.43.95
        inet6 fe80::201:2ff:feec:ff1d%ex0 prefixlen 64 scopeid 0x1

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?

ping 192.124.43.90 works just fine, of course.

Thanks,

Rich