Subject: Re: IP aliases and access on the same system
To: Jeremy C. Reed <reed@reedmedia.net>
From: Lasse =?iso-8859-1?Q?Hiller=F8e?= Petersen <lhp@toft-hp.dk>
List: netbsd-help
Date: 09/16/2001 11:53:32
At 7:28 +0200 16/09/01, Jeremy C. Reed wrote:
>On Sun, 16 Sep 2001, Richard Pennington wrote:
>
>> 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.
>
>Looking again at the /etc/rc.d/network script, this is not done.
>
>> Should these routes be added by ifconfig? It seems like they should.
>
>I have only used /etc/ifaliases on my systems and from looking at
>/etc/rc.d/network (and /etc/netstart) the route is set up for them (and if
>using rc.conf's ifaliases_*).
I had the same problem some time ago. I first used /etc/ipaliases, but I
believe the file or docs say that "the right way" is to add the aliases in
the /etc/ifconfig.XX file instead, so I switched to doing that. Then I got
the problem. I forget how I managed to find out, but I think I looked at
the rc file that processes ipaliases (this was before rc.d) and discovered
that it adds the routes at that time. The handling of aliases in
ifconfig.XX files does not add these routes. Perhaps this is something that
should be fixed?
-Lasse