Subject: Re: IP aliases and access on the same system
To: Richard Pennington <rich@introl.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 09/15/2001 21:59:29
> > > 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/