Subject: Re: Odd problem with ifconfig aliases
To: None <>
From: Lasse =?iso-8859-1?Q?Hiller=F8e?= Petersen <>
List: netbsd-users
Date: 02/24/2001 12:06:02
I believe I forgot to mention, I'm using 1.5-i386.

>I have successfully had my server configured with the following
>/etc/ifconfig.rtk0 file:
>inet netmask 0xffffff00 media autoselect
>inet netmask 0xffffff00 alias

I had added these in ifconfig.rtk0 instead of /etc/ifaliases, because this
is said in /etc/rc.d/network:

        # Note that /etc/ifaliases works only with certain cases only and its
        # use is not recommended.  Use /etc/ifconfig.xxN instead.

(I wonder why this isn't in the manpage for ifaliases, BTW.)

However, using /etc/ifaliases appears to do one thing that adding the alias
to ifconfig.xxN doesn't (again from /etc/rc.d/network, a bit later on):

                        # use loopback, not the wire
                        route add $addr

By adding this route manually, my problems were solved. Searching the list
archives turned up very little, but now I wonder whether I might be able to
solve this without adding the route, and setting an all-1 netmask for the
aliases? But now that things work as required, I am less inclined to

Thanks to Brian de Alwis for helping me solve this.