<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>