[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dhcp-server
Subject:    'deny duplicates' not working as documented ?
From:       Yves Tavernier <ykke () kulnet ! kuleuven ! ac ! be>
Date:       2002-03-25 13:22:25
[Download RAW message or body]

   *** From dhcp-server -- To unsubscribe, see the end of this message. ***


Hi,

I'm trying out 3.0.1rc8, and i'm experiencing a problem with 'deny
duplicates'. (i remember having simular problems before with 3.0 and with
3.0.1rc1, but i had no time to do any debugging then).


I have enabled 'deny duplicates', and it seems like dhcpd is still
comparing the client identifiers when assigning ip adresses.  The
documentation suggests dhcpd should only compare the clients mac
addresses. 

I enabled some debugging in my test setup and added the output below :
(i started with an empty lease file, and the dhcpd.conf is added below)
- first part : booting linux with kernel-dhcp (no client identifier)
  gives 192.168.1.210   
- second part : booting windows on the same pc (with client identifier) 
  gives 192.168.1.210
- third part : booting linux with kernel-dhcp again gives 192.168.1.209,
  both .210 and .209 keep 'binding-state active'...

In dhcpd 2.0pl5, the address stays the same in all 3 steps, which is the
behaviour i was expecting with 'deny duplicates' enabled.

Is this a bug or am i doing something wrong ?

Greetings,
Yves Tavernier.
--------------------------------------------------------- KULeuvenNet --

dhcpd.conf :
------------

server-identifier 192.168.1.16;
ddns-update-style none;
authoritative;
deny duplicates;

subnet 192.168.1.0 netmask 255.255.255.0 {
     range 192.168.1.208 192.168.1.210;
     option domain-name "testC.kuleuven.ac.be";
     option routers 192.168.1.130;
     option subnet-mask 255.255.255.0;
     option broadcast-address 192.168.1.255;
     default-lease-time 86400;
     max-lease-time 86400;
}


Debugging output : (added newline between requests)
------------------

lease 192.168.1.210 moves from free to free
lease 192.168.1.210: next binding state free
DHCPDISCOVER from 00:c0:4f:84:f7:be via eth1
DHCPOFFER on 192.168.1.210 to 00:c0:4f:84:f7:be via eth1
trying next lease matching hw addr: 192.168.1.210
Found lease for hardware address: 192.168.1.210.
Found lease for requested address: 192.168.1.210.
hardware lease and ip lease are identical.
choosing lease on requested address.
Returning lease: 192.168.1.210.
lease 192.168.1.210 moves from free to active
lease 192.168.1.210: next binding state free
DHCPREQUEST for 192.168.1.210 (192.168.1.16) from 00:c0:4f:84:f7:be via eth1
DHCPACK on 192.168.1.210 to 00:c0:4f:84:f7:be via eth1

trying next lease matching hw addr: 192.168.1.210
Found lease for hardware address: 192.168.1.210.
Found lease for requested address: 192.168.1.210.
hardware lease and ip lease are identical.
choosing lease on requested address.
Returning lease: 192.168.1.210.
lease 192.168.1.210 moves from active to active
lease 192.168.1.210: next binding state free
DHCPREQUEST for 192.168.1.210 from 00:c0:4f:84:f7:be via eth1
DHCPACK on 192.168.1.210 to 00:c0:4f:84:f7:be (PC498) via eth1

trying next lease matching hw addr: 192.168.1.210
wrong client identifier: 192.168.1.210
Not returning a lease.
lease 192.168.1.209 moves from free to free
lease 192.168.1.209: next binding state free
DHCPDISCOVER from 00:c0:4f:84:f7:be via eth1
DHCPOFFER on 192.168.1.209 to 00:c0:4f:84:f7:be via eth1
trying next lease matching hw addr: 192.168.1.210
wrong client identifier: 192.168.1.210
trying next lease matching hw addr: 192.168.1.209
Found lease for hardware address: 192.168.1.209.
Found lease for requested address: 192.168.1.209.
hardware lease and ip lease are identical.
choosing lease on requested address.
Returning lease: 192.168.1.209.
lease 192.168.1.209 moves from free to active
lease 192.168.1.209: next binding state free
DHCPREQUEST for 192.168.1.209 (192.168.1.16) from 00:c0:4f:84:f7:be via eth1
DHCPACK on 192.168.1.209 to 00:c0:4f:84:f7:be via eth1






-----------------------------------------------------------------------
List Archives : http://www.isc.org/ml-archives/dhcp-server/
Unsubscribe   : http://www.isc.org/dhcp-lists.html    
-or-          : mailto:dhcp-server-request@isc.org?Subject=unsubscribe  
-----------------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic