Subject: bin/13005: dhclient swaps aliases on DHCPNAK/DHCPDISCOVER sequence
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 05/22/2001 15:53:57
>Number:         13005
>Category:       bin
>Synopsis:       dhclient swaps aliases on DHCPNAK/DHCPDISCOVER sequence
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 22 12:53:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     TheMan
>Release:        -current
>Organization:
none
>Environment:
System: NetBSD tweedlebsd 1.5U NetBSD 1.5U (FROGS) #10: Sun Apr 15 14:37:48 EDT 2001     andrew@tweedlebsd:/usr/src/sys/arch/alpha/compile/FROGS alpha

>Description:

my internet gateway stopped working last night and after a few
minutes, i noticed that the address i got from the cable modem had
changed.  the log entries looked like this:

May 21 22:02:05 tweedlebsd dhclient: DHCPREQUEST on ex0 to 24.29.99.65 port 67
May 21 22:02:05 tweedlebsd dhclient: DHCPNAK from 24.29.99.65
May 21 22:02:05 tweedlebsd dhclient: DHCPDISCOVER on ex0 to 255.255.255.255 port 67 interval 5
May 21 22:02:05 tweedlebsd dhclient: DHCPOFFER from 24.29.99.65
May 21 22:02:05 tweedlebsd dhclient: DHCPOFFER from 24.29.99.65
May 21 22:02:05 tweedlebsd dhclient: DHCPREQUEST on ex0 to 255.255.255.255 port 67
May 21 22:02:05 tweedlebsd dhclient: DHCPACK from 24.29.99.65
May 21 22:02:05 tweedlebsd dhclient: bound to 66.108.76.213 -- renewal in 40863 seconds.

prior to this, my ex0 interface had this configuration:

ex0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet autoselect (10baseT)
        status: active
        inet 66.65.48.169 netmask 0xfffff800 broadcast 255.255.255.255
        inet alias 206.223.36.132 netmask 0xffffff80 broadcast 206.223.36.255
        inet6 fe80::250:4ff:fe68:c610%ex0 prefixlen 64 scopeid 0x1

and afterwards looked like this:

ex0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet autoselect (10baseT)
        status: active
        inet 206.223.36.132 netmask 0xffffff80 broadcast 206.223.36.255
        inet alias 66.108.76.213 netmask 0xfffff800 broadcast 255.255.255.255
        inet6 fe80::250:4ff:fe68:c610%ex0 prefixlen 64 scopeid 0x1

which was the reason my network didn't route properly.

>How-To-Repeat:

not sure.  i tried setting up a little dhcp server, running a client
on a 1.5Q machine, reconfiguring the server, and waiting for the
client to "botch the update", but it seemed to work fine.

perhaps a new bug?

>Fix:

none provided.
>Release-Note:
>Audit-Trail:
>Unformatted: