<div dir="ltr">I have a dhcpd.conf file thats getting very hard to manage.  Part of the problem is I'm building alot of classes base on matching MAC address of remote agent IDs.  Is there a way to make a single class that will multiple mac matches?<div><br></div><div>Here is what I have for example:</div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">class "WAP-CM-13104A" {</font></div><div><font face="monospace, monospace">  match if ((substring(option vendor-class-identifier,0,6) != "docsis") and (binary-to-ascii(16, 8, ":", suffix( option agent.remote-id, 6)) = "78:71:9c:f5:ea:db"));</font></div><div><font face="monospace, monospace">  spawn with hardware;</font></div><div><font face="monospace, monospace">}</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">class "WAP-CM-512A" {</font></div><div><font face="monospace, monospace">  match if ((substring(option vendor-class-identifier,0,6) != "docsis") and (binary-to-ascii(16, 8, ":", suffix( option agent.remote-id, 6)) = "7c:b2:1b:9e:3:26"));</font></div><div><font face="monospace, monospace">  spawn with hardware;</font></div><div><font face="monospace, monospace">}</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">class "WAP-CM-514A" {</font></div><div><font face="monospace, monospace">  match if ((substring(option vendor-class-identifier,0,6) != "docsis") and (binary-to-ascii(16, 8, ":", suffix( option agent.remote-id, 6)) = "7c:b2:1b:9d:7e:fc"));</font></div><div><font face="monospace, monospace">  spawn with hardware;</font></div><div><font face="monospace, monospace">}</font></div><div><br></div><div>I would like to have a single class with all 3 macs in it.</div><div><br></div><div>Is that possible? Does anyone know the syntax?  Would something like this work?  Is there a less clunky way?  Note, I still need multiple classes. I cant dump all the docis devices into on class.</div><div><br></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">class "MODEMCLIENT" {<br></font></div><div><font face="monospace, monospace">   match if ((substring(option vendor-class-identifier,0,6) != "docsis") and ((binary-to-ascii(16, 8, ":", suffix( option agent.remote-id, 6)) = "7c:b2:1b:9d:7e:fc") or (binary-to-ascii(16, 8, ":", suffix( option agent.remote-id, 6)) = "7c:b2:1b:9e:3:26") or (binary-to-ascii(16, 8, ":", suffix( option agent.remote-id, 6)) = "78:71:9c:f5:ea:db"));</font></div><div><font face="monospace, monospace">  spawn with hardware;</font></div><div><font face="monospace, monospace">}</font></div><div><br></div></div><div>Thanks</div><div>Tom</div></div>