I'm trying to do something that seems like it should be very simple but I can't seem to get it quite right.<br><br>I want to assign IP addresses to clients based solely on their Option 61 client IDs. For convenience/test purposes, I want to do this on a subnet that already has a regular DHCP server, so I want my test dhcpd to only assign an address to "known" clients (i.e. clients which have a matching client ID listed in the config file). I've come up with something that seems like it should work, but every time a client does a DHCPDISCOVER the server reports "no free leases."<br>
<br>Can someone tell me what I'm doing wrong? I'm sure it's ridiculously simple, but I've blown a whole day on it so far and can't get it to work. Thanks for your help!<br><br>The output of dhcpd and my dhcpd.conf file are attached.<br>
<br>-bash-3.2# dhcpd -f -d eth0<br>Internet Systems Consortium DHCP Server 4.1.0<br>Copyright 2004-2008 Internet Systems Consortium.<br>All rights reserved.<br>For info, please visit <a href="http://www.isc.org/sw/dhcp/">http://www.isc.org/sw/dhcp/</a><br>
Wrote 0 class decls to leases file.<br>Wrote 0 deleted host decls to leases file.<br>Wrote 0 new dynamic host decls to leases file.<br>Wrote 0 leases to leases file.<br>Listening on LPF/eth0/00:a0:1e:07:01:00/<a href="http://10.24.0.0/16">10.24.0.0/16</a><br>
Sending on   LPF/eth0/00:a0:1e:07:01:00/<a href="http://10.24.0.0/16">10.24.0.0/16</a><br>Sending on   Socket/fallback/fallback-net<br>DHCPDISCOVER from 00:a0:1e:a1:30:00 via eth0: network <a href="http://10.24.0.0/16">10.24.0.0/16</a>: no free leases<br>
<br>=== /etc/dhcpd.conf ===<br><br>#<br># DHCP Server Configuration file.<br>#<br>not authoritative;<br>ddns-update-style none;<br>default-lease-time 86400;<br>max-lease-time 172800;<br>boot-unknown-clients false;<br><br>
class "test"<br>{<br>  match pick-first-value (option dhcp-client-identifier, hardware);<br>}<br><br>subnet 10.24.0.0 netmask 255.255.0.0<br>{<br>  pool<br>  {<br>    allow members of "test";<br>    option routers 10.24.7.1;<br>
    option domain-name-servers 10.24.7.1;<br>    range 10.24.7.10 10.24.7.100;<br>    deny unknown-clients;<br>  }<br>}<br><br>host pos_30<br>{<br>  option dhcp-client-identifier "\0pos_30";<br>  option host-name "pos_30";<br>
  fixed-address 10.24.7.30;<br>}<br><br>host pos_31<br>{<br>  option dhcp-client-identifier "\0pos_31";<br>  option host-name "pos_31";<br>  fixed-address 10.24.7.31;<br>}<br><br>