Duplicate lease, different ip.

Douglas Power dpower at fnb.co.za
Mon Apr 30 12:39:07 UTC 2007


Good day all.

I have some strange things happening with my dhcp server.
I am running SLES 10 with isc-dhcpd-V3.0.3

My issue is that when I boot my first terminal using PXE, I receive the
correct lease as bellow:

lease 10.42.201.126 {
  starts 1 2007/04/30 10:39:40;
  ends 3 2007/05/30 10:39:40;
  binding state active;
  next binding state free;
  hardware ethernet 00:0b:db:63:02:e3;
}
lease 10.42.201.126 {
  starts 1 2007/04/30 10:39:50;
  ends 3 2007/05/30 10:39:50;
  binding state active;
  next binding state free;
  hardware ethernet 00:0b:db:63:02:e3;
  uid "\001\000\013\333c\002\343";
}

Then if I reboot the terminal, dhcp serves the next ip in the range for
the linux kernel to be uncompressed but when the terminal comes up it
users the original lease and the 2nd ip/lease is stored in the leases
file and is not usable. Please see leases bellow.

 lease 10.42.201.126 {
  starts 1 2007/04/30 10:39:40;
  ends 3 2007/05/30 10:39:40;
  binding state active;
  next binding state free;
  hardware ethernet 00:0b:db:63:02:e3;
}
lease 10.42.201.126 {
  starts 1 2007/04/30 10:39:50;
  ends 3 2007/05/30 10:39:50;
  binding state active;
  next binding state free;
  hardware ethernet 00:0b:db:63:02:e3;
  uid "\001\000\013\333c\002\343";
}
lease 10.42.201.126 {
  starts 1 2007/04/30 12:27:28;
  ends 1 2007/04/30 12:28:16;
  tstp 1 2007/04/30 12:28:16;
  binding state free;
  hardware ethernet 00:0b:db:63:02:e3;
  uid "\001\000\013\333c\002\343";
}
lease 10.42.201.125 {
  starts 1 2007/04/30 12:28:16;
  ends 3 2007/05/30 12:28:16;
  binding state active;
  next binding state free;
  hardware ethernet 00:0b:db:63:02:e3;
}
lease 10.42.201.126 {
  starts 1 2007/04/30 12:28:27;
  ends 3 2007/05/30 12:28:27;
  binding state active;
  next binding state free;
  hardware ethernet 00:0b:db:63:02:e3;
  uid "\001\000\013\333c\002\343";
}



/etc/dhcpd.conf as bellow:
==========================

authoritative;
ddns-update-style none;

shared-network ltspcc {
   option domain-name-servers 10.42.2.24;
   option domain-name "foo.co.za";
   filename "/lts/2.6.17.3-ltsp-1/pxelinux.0";
   next-server 10.42.200.5;
   default-lease-time 2592000;
   max-lease-time 2592000;
   option log-servers 10.42.200.5;
   option routers 10.42.201.1;

subnet 10.42.201.0 netmask 255.255.255.128 {
   option subnet-mask 255.255.255.128;
   #option option-128 code 128 = string;
   #option option-129 code 129 = text;
   option broadcast-address 10.42.201.127;
   deny duplicates;   one-lease-per-client true;
   pool {
   deny dynamic bootp clients;
   option root-path "10.42.200.11:/opt/ltsp-4.2u2/i386";
   range 10.42.201.26 10.42.201.126;
   }
}
subnet 10.42.201.128 netmask 255.255.255.128 {
   option subnet-mask 255.255.255.128;
   option broadcast-address 10.42.201.255;
   pool {
   deny dynamic bootp clients;
   option root-path "10.42.200.11:/opt/ltsp-4.2u2/i386";
   range 10.42.201.154 10.42.201.254;
   }
}
}

Any help would be much appreciated, Thanks.

Doug. 



-- 
Douglas Power <dpower at fnb.co.za>
FNB

To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: 
https://www.fnb.co.za/disclaimer.html 

If you are unable to access the Disclaimer, send a blank e-mail to
firstrandbankdisclaimer at fnb.co.za and we will send you a copy of the Disclaimer.


More information about the dhcp-users mailing list