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/16/2001 00:06:22
On Saturday 15 September 2001 11:59 pm, Jeremy C. Reed wrote:
> > > > 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
> >
> > Great! Thanks. This was exactly what I needed.
>
> Your welcome. I want to mention why I said you shouldn't have to map your
> IP addresses to localhost. If you use the /etc/rc.d/network or
> /etc/netstart script to start up the aliases as defined by the ifaliases
> variable or /etc/ifaliases file, then this is done for you. Using the
> /etc/ifconfig.xxN file is the preferred way; for example, your
> /etc/ifconfig.ex0 could be like:
>
> inet 192.124.43.90 netmask 0xffffffe0
> inet 192.124.43.70 netmask 0xffffffe0 alias
> inet 192.124.43.87 netmask 0xffffffe0 alias
> inet 192.124.43.88 netmask 0xffffffe0 alias
> inet 192.124.43.89 netmask 0xffffffe0 alias
>
>    Jeremy C. Reed
>    http://www.reedmedia.net/

Hmm. My ifconfig.ex0 is:

192.124.43.90 netmask 0xffffffe0 media 100BaseTX-FDX
192.124.43.89 alias netmask 0xffffffe0
192.124.43.88 alias netmask 0xffffffe0
192.124.43.87 alias netmask 0xffffffe0
192.124.43.70 alias netmask 0xffffffe0

but the IPs aren't available until I manually add the routes.

Should these routes be added by ifconfig? It seems like they should.

-Rich