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 12:51:52
On Mon, 25 Jun 2001, Paul Hoffman wrote:

> At 1:58 AM -0500 6/25/01, Frederick Bruckman wrote:
> >  > 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
>
> I could, but should I? That is, why don't the alias commands in my
> /etc/ifconfig.fxp0 file do this correctly?
>
> On a related note, I got an off-list suggestion to instead use the
> /etc/ifaliases file, and this will work correctly (where aliases in
> /etc/ifconfig.fxp0 do not). Is that the recommended way of doing
> multihomed aliases?

Sounds good to me. I think the ability to accept multiple lines in
/etc/ifconfig.XXX was supposed to make /etc/ifaliases obsolete, but
this issue seems to have been neglected.


Frederick