Subject: "rotating" IPv4 addresses - bug or feature?
To: None <tech-net@netbsd.org>
From: Jukka Salmi <j+nbsd@2007.salmi.ch>
List: tech-net
Date: 07/11/2007 02:12:23
Hi,

after bringing down a NetBSD 3 system to single user and then back up
to multi user, I noticed that the systems three IPv4 addresses were
"rotated". I can also reproduce this on a -current system:

$ ifconfig vr0 inet 192.168.0.1/24
$ ifconfig vr0 inet 192.168.0.2/24 alias
$ ifconfig vr0 inet 192.168.0.3/24 alias
$ ifconfig vr0
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	address: 00:0c:6e:74:f6:81
	media: Ethernet autoselect (100baseTX full-duplex)
	status: active
	inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
	inet alias 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
	inet alias 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255

So far so good, but then:

$ ifconfig vr0 inet 192.168.0.1/24
$ ifconfig vr0
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	address: 00:0c:6e:74:f6:81
	media: Ethernet autoselect (100baseTX full-duplex)
	status: active
	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

Hmm, it's not a problem AFAICT, I just wonder if this is expected
behaviour...


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~