<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body dir="auto">
<div></div>
<div>Sorry, I have not been following this closely and may not be understanding your requirements. I had a problem in my dhcp.conf where I needed to isolate specific MAC addresses and did so with host entries.</div>
<div><br>
</div>
<div>To make them more manageable, I am using an include file consisting of only related host entries, as in all devices of type X are in the same include file. When I need to add a new one, I can copy one of the existing entries, very important for those folks
 that assist me irregularly that don't know why or how it works. I name the device to facilitate finding it later (they are end-user devices associated with customer accounts and occasionally need to be removed or rarely modified) and use grep on all files
 in the parent directory to find them. </div>
<div><br>
</div>
<div>If this is sounding remotely pertinent, I would be happy to share specifics when I return to my office tomorrow.</div>
<div><br>
</div>
<div>Patrick</div>
<div><br>
On Jul 2, 2017, at 4:13 PM, Tom Priore <<a href="mailto:tom.priore@gmail.com">tom.priore@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="auto">
<div>Thanks for the help. I have no way of controlling or predicting the vendor identifiers.  Anything from that
<a href="http://agent.id">agent.id</a> will end up in the same range.  <br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Jun 28, 2017 4:49 AM, "Simon Hobson" <<a href="mailto:dhcp1@thehobsons.co.uk">dhcp1@thehobsons.co.uk</a>> wrote:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="quoted-text">Tom Priore <<a href="mailto:tom.priore@gmail.com">tom.priore@gmail.com</a>> wrote:<br>
<br>
> 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?<br>
<br>
</div>
I suspect that subclasses are what you are after. Not sure from looking at the examples in the man page how it would work with two match clauses (ie substring(option vendor-class-identifier,0,6) != "docsis" and a MAC address) as the examples only show a single
 match on MAC address. I suspect you might end up with something like :<br>
<br>
class "MODEMCLIENT" {<br>
  match concat ( substring(option vendor-class-identifier,0,6), suffix( option agent.remote-id, 6) )<br>
  ...<br>
}<br>
<br>
subclass "MODEMCLIENT" concat("??????", 1:7c:b2:1b:9d:7e:fc) ;<br>
<br>
Do you know what the vendor class identifiers are for the devices you are trying to serve (ie the ?????? above) ? I take it you can't just use the agent.remote-id on it's own ?<br>
<br>
______________________________<wbr>_________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/dhcp-users</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>dhcp-users mailing list</span><br>
<span><a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a></span><br>
<span><a href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a></span></div>
</blockquote>
</body>
</html>