[KLUG Members] dhcpd

Adam Tauno Williams members@kalamazoolinux.org
Fri, 31 Jan 2003 11:02:22 -0500


Does anyone know if ISC DHCP provides any kind of API or hooks for looking up
data external to the config file?  I'd like to be able to restrain its dolling
out an IP except to MACs found in the DSA.  Bieng able to trigger an event on
lease grant/renweal/expire would be nice to.  But I've never seen anything like
this.

>I finally solved my problem.  The correct format is 1:<MAC-address>.  So it
>would look like:
>subclass "a-class" 1:00:09:27:78:73:56 { option host
>-name "xyz"; ddns-hostname "xyz"; }
>>I’m having problems with dhcpd.  I’m trying to
>>separate two groups by mac address so they will have
>>different domain names and routers. 
>>
>>In dhcpd.conf I have:
>
>>class "a-class" {
>>  match pick-first-value (option dhcp-client
>>identifier, hardware);
>>}
>>
>>subclass "a-class" 00:09:27:78:73:56 { option host
>>-name "xyz"; ddns-hostname "xyz"; }
>>
>>subnet 172.16.33.0 netmask 255.255.255.0 {
>>  pool {
>>    allow members of "a-class";
>>    range 172.16.33.86 172.16.33.200;
>>    option domain-name "abc.com";
>a3E    option routers 172.16.33.2;
>>  }
>>  pool {
>>    deny members of "a-class";
>>    range 172.16.33.201 172.16.33.254;
>>    option domain-name "cba.com";
>>    option routers 172.16.33.1;
>>  }
>>}
>>
>>In dhcpd.leases I get:
>
>>lease 172.16.33.219 {
>>  starts 3 2003/01/22 13:24:45;
>>  ends 3 2003/01/22 16:12:45;
>>  binding state active;
>>  next binding state free;
>>  hardware ethernet 00:90:27:78:73:56;
>>  uid "\001\000\220'xsV";
>>  client-hostname "xyz";
>>}
>>
>>Even though xyz is in a-class, it still gets a range,
>>domain-name and router of one that is not in a-class
>>(172.16.33.219).
>>Does anyone have any suggestions?