Diff client IDs -> multiple leases

Jesse Saletan dhcp at saletan.com
Mon Mar 13 16:13:18 UTC 2006


Hi, all.

I am trying to get Didi's single-lease-dhcp patch to work so that multiboot 
systems will only use a single lease.  I know it's working for other people, 
so I'm probably doing something wrong.  I'll post some details of my 
configuration below.  If this is out of place here let me know and I'll 
continue this thread privately.

I have a test environment set up with two PCs connected via crossover cable.  
The server is running Fedora Core 3 and I've installed dhcp-3.0.1rc13 with 
the patch applied.  I know this is old, but this is the level that the patch 
was originally written for, and I want to eliminate any other potential 
problems.  My dhcpd.conf is as follows:

------------------------------
# begin dhcpd.conf
ddns-updates on;
ddns-update-style interim;
ddns-hostname = pick (option fqdn.hostname, option host-name,
                      concat ("dhcp-",
                              binary-to-ascii (10, 8, "-", leased-address)));
authoritative;
option domain-name "dhcp.net";
option domain-name-servers 192.168.50.1;
option host-name = config-option server.ddns-hostname;
one-lease-per-client on;
ignore client-updates;

include "/etc/rndc.key";

zone dhcp.net. {
  primary 192.168.50.1;
  key rndckey;
}

zone 50.168.192.in-addr.arpa. {
  primary 192.168.50.1;
  key rndckey;
}

# The test network
subnet 192.168.50.0 netmask 255.255.255.0 {
    option broadcast-address 192.168.50.255;
    option subnet-mask 255.255.255.0;
    ddns-updates on;
    range 192.168.50.10 192.168.50.250;
    }
# end dhcpd.conf
------------------------------

When I boot up the client PC into Windows XP Pro SP2, it picks up a lease for 
192.168.50.250.  Then when I reboot into Red Hat 9, rather than using the 
existing lease and IP address it picks up a new lease for 192.168.50.249.  
The entries in /var/state/dhcp/dhcpd.leases look like this:

------------------------------
lease 192.168.50.250 {
  starts 1 2006/03/13 15:29:27;
  ends 2 2006/03/14 03:29:27;
  binding state active;
  next binding state free;
  hardware ethernet 00:b0:d0:2a:9c:51;
  uid "\001\000\260\320*\234Q";
  set ddns-rev-name = "250.50.168.192.in-addr.arpa.";
  set ddns-txt = "3101f80a3a400ace7ad063651041b22204";
  set ddns-fwd-name = "nim.dhcp.net";
  client-hostname "nim";
}
lease 192.168.50.249 {
  starts 1 2006/03/13 15:30:45;
  ends 2 2006/03/14 03:30:45;
  binding state active;
  next binding state free;
  hardware ethernet 00:b0:d0:2a:9c:51;
  client-hostname "nim";
}
------------------------------

Any idea what I'm doing wrong?  Or are my expectations off about how this 
patch is supposed to work?

Thanks,
Jesse


More information about the dhcp-users mailing list