Subject: Re: "rotating" IPv4 addresses - bug or feature?
To: None <tech-net@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: tech-net
Date: 07/11/2007 20:38:54
On Wed, 11 Jul 2007, David Young wrote:
> > $ ifconfig vr0
> > vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> > 	[...]
> > 	inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
> > 	inet alias 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255
> > 	inet alias 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
> > 
> > $ ifconfig vr0 inet 192.168.0.1/24
> > $ ifconfig vr0
> > vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> > 	[...]
> > 	inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255
> > 	inet alias 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
> > 
> > Huh, 192.168.0.2 is gone...
> 
> You have to use the 'alias' keyword, or else the kernel will replace the
> first address instead of adding an address.

Yes, that's what I expected, but that's not what happened.  The kernel
removed the previous "first address", but failed to move the "new"
address to the beginning of the list.

--apb (Alan Barrett)