On Thursday 13 April 2006 15:08, Ian Service wrote:
> For those of you using ISC-dhcpd, you may want to save this for
> reference...
Something else to save for reference:
If you want to set up a separate list of options based on the hardware vendor
part of the MAC address:
# matches any polycom hardware (vendor MAC 00:04:f2):
class "phones" {
match if substring(binary-to-ascii(16, 8, ":", hardware), 2,
6) = "0:4:f2";
}
And then, you just work with your pools as normal:
# phones
pool {
option tftp-server-name "192.168.1.1";
max-lease-time 28800;
range 192.168.1.80 192.168.1.99;
allow members of "phones";
}
# regular computers
pool {
option domain-name "internal.dom";
max-lease-time 28800;
range 192.168.1.200 192.168.1.254;
deny members of "phones";
}
That match took me FOREVER to figure out, let me tell you...
-A.