need help understanding class matching

jeffrey j donovan donovan at beth.k12.pa.us
Tue Aug 30 02:35:21 UTC 2011


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


More information about the dhcp-users mailing list