need help understanding class matching

Sebastien Pascal sbpascal at gmail.com
Tue Aug 30 14:37:43 UTC 2011


My guess is the first
; needs to be removed. Remove it and try again
On Aug 29, 2011 10:40 PM, "jeffrey j donovan" <donovan at beth.k12.pa.us>
wrote:
> greetings
>
> i want to assign a pool of addresses to a group of mac addresses, it seems
that either my syntax is wrong. The config passes the dhcpd -t test only
when I add single entries.
>
> here is the code that fails;
>
> class "machines" {
> match if substring (hardware, 1, 3) = "00:11:af";
> or if substring (hardware, 1, 3) = "00:11:bg";
> }
>
>
> ## error
> /etc/dhcpd.conf line 18: expecting a parameter or declaration
> match if substring (hardware, 1, 3) = "00:11:af";
> ^
> Configuration file errors encountered -- exiting
>
>
> can someone smack me in the right direction :)
>
> -j
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20110830/e175ed87/attachment.html>


More information about the dhcp-users mailing list