<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 27, 2012 at 7:41 PM, solarflow99 <span dir="ltr"><<a href="mailto:solarflow99@gmail.com" target="_blank">solarflow99@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have been testing with a second dhcp server on the same vlan, and<br>
wanted to limit the scope to only serve out to clients that have mac<br>
addresses that start with the same 3 octets, something like this<br>
maybe?<br>
<br>
<br>
class "custom-clients" {<br>
         match if substring (option dhcp-client-identifier, 00:50:56);<br>
       }<br>
<br>
deny unknown-clients;<br>
<br></blockquote><div><br></div><div>you are very close.  if you search for 'isc dhcp match vendor' you should get a lot of helpful information.  You can simply use the hardware address rather than an option.  Plus unknown-clients refers to systems that do not have a host entry in your file.  In this case none do, so all clients would be denied.  You can either do an allow block:<br>

<br></div><div>or<br></div><div><br><pre>class "good" {<br><span class="" style="white-space:pre"> </span>match if substring(hardware,1,3) = AA:BB:CC;<br>}<br><br></pre><pre>allow members of "good";<br>

<br><br>or a deny block<br><br><br>class "bad" {<br><span class="" style="white-space:pre"> </span>match if not substring(hardware,1,3) = AA:BB:CC;<br>}<br><br>deny members of "bad";<br><br><br></pre>
<pre>
In an ideal world they work the same, but test it out and see how they do for your use case.<br><br></pre><pre>-greg<br></pre></div></div></div></div>