Subject: Re: Can't access aliased IPs on same box
To: Paul Hoffman <phoffman@proper.com>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-help
Date: 06/25/2001 01:58:19
On Sun, 24 Jun 2001, Paul Hoffman wrote:

> fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>          address: 00:b0:d0:de:5d:de
>          media: Ethernet autoselect (10baseT)
>          status: active
>          inet a.b.c.39 netmask 0xffffffe0 broadcast a.b.c.39.63
>          inet alias a.b.c.40 netmask 0xffffffe0 broadcast a.b.c.39.63
>          inet alias a.b.c.41 netmask 0xffffffe0 broadcast a.b.c.39.63

> When logged in with telnet, I can ping a.b.c.39 and 127.0.0.1 just
> fine. When I try to ping (or access in any other way) a.b.c.40, .41,
> and so on, I get no connection. I can ping and access those addresses
> just fine from boxes on the Internet.
>
> How can I access my aliased IP addresses from this box?

You could add explicit routes through "localhost",

  route add -host a.b.c.40 localhost -interface
  route add -host a.b.c.41 localhost -interface


Frederick