need help understanding class matching
Jason Gerfen
jason.gerfen at gmail.com
Tue Aug 30 02:46:01 UTC 2011
Ommit the first 0 of your hardware access.
match if substring (hardware, 1, 3) = "0:11:af"
On Mon, Aug 29, 2011 at 8:35 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
>
--
Jason Gerfen
jason.gerfen at gmail.com
http://www.github.com/jas-
http://phpdhcpadmin.sourceforge.net
More information about the dhcp-users
mailing list