dhclient didn't wait for dhcpoffer

rgreiner mrgreiner at gmail.com
Tue Jun 2 20:34:51 UTC 2009


Hi,

I've got a small problem. I'm having a problem with some clients,
sometimes getting an address in the 169.254 range instead of 172.16/16,
which is what I'm using. Today, it happened to my own station, so I have
a log of it. For some reason, the client didn't wait for the server
answer. The logs below show what happened. I'm trying to figure what
happened, but couldn't understand.

The first entry shows what happened. The client simply didn't wait. The
client tried to use the IP 169.254.111.112. When it tried to broadcast
that it was using this address, as expected the server refused with a
DHCPNAK, but even so the client used this address.

Jun  2 16:54:37 noc dhclient: Listening on LPF/eth1/00:0e:35:8c:b3:46
Jun  2 16:54:37 noc dhclient: Sending on   LPF/eth1/00:0e:35:8c:b3:46
Jun  2 16:54:37 noc dhclient: Sending on   Socket/fallback
Jun  2 16:54:41 noc dhclient: DHCPDISCOVER on eth1 to 255.255.255.255
port 67 interval 8
Jun  2 16:54:41 noc dhclient: DHCPOFFER of 169.254.111.112 from 0.0.0.0
Jun  2 16:54:41 noc dhclient: DHCPREQUEST of 169.254.111.112 on eth1 to
255.255.255.255 port 67
Jun  2 16:54:41 noc dhclient: DHCPNAK from 172.17.0.254
Jun  2 16:54:41 noc dhclient: DHCPACK of 169.254.111.112 from 0.0.0.0

Two minutes later, I just restarted the (wireless) interface, and as can
be seen in the log, everything worked properly.

Jun  2 16:57:02 noc dhclient: Listening on LPF/eth1/00:0e:35:8c:b3:46
Jun  2 16:57:02 noc dhclient: Sending on   LPF/eth1/00:0e:35:8c:b3:46
Jun  2 16:57:02 noc dhclient: Sending on   Socket/fallback
Jun  2 16:57:06 noc dhclient: DHCPDISCOVER on eth1 to 255.255.255.255
port 67 interval 5
Jun  2 16:57:06 noc dhclient: DHCPOFFER of 172.16.143.255 from 172.17.0.254
Jun  2 16:57:06 noc dhclient: DHCPREQUEST of 172.16.143.255 on eth1 to
255.255.255.255 port 67
Jun  2 16:57:06 noc dhclient: DHCPACK of 172.16.143.255 from 172.17.0.254

The server platform is a FreeBSD server, running isc-dhcp version 3.0.7.
The client is a Debian Lenny (5.0), kernel 2.6.28-11, running dhclient
version 3.1.1.

My config file is the following (I have two network boards and some
vlans, so this server is serving two networks)

option domain-name "(internal domain)";
default-lease-time 7200;
max-lease-time 86400;
authoritative;
log-facility local7;
ddns-update-style none;
deny declines;

subnet 172.16.0.0 netmask 255.255.0.0 {
        range 172.16.51.2 172.16.150.254;
        option routers 172.16.0.1;
        option domain-name-servers 172.16.0.1;
        default-lease-time 7200;
        max-lease-time 86400;
}

subnet (real public IP) netmask 255.255.255.0 {
}

subnet 172.19.0.0 netmask 255.255.0.0 {
        range 172.19.51.2 172.19.150.254;
        option routers 172.19.0.1;
        option domain-name-servers 172.19.0.1;
        default-lease-time 7200;
        max-lease-time 86400;
}

Any help would be appreciated.

Thank you for your attention,

Roberto Greiner




-- 
  -----------------------------------------------------
                Marcos Roberto Greiner

   Os otimistas acham que estamos no melhor dos mundos
    Os pessimistas tem medo de que isto seja verdade
                                       Murphy
  -----------------------------------------------------




More information about the dhcp-users mailing list