<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Simon Kelley escribi&oacute; el 05/12/08 19:00:
<blockquote cite="mid:49399688.2080400@thekelleys.org.uk" type="cite">Mariano
Absatz wrote:
  <br>
  <blockquote type="cite"><br>
How should I configure my dnsmasq to prevent unknown MACs from getting
an IP in the "tagIKnowYou" range?
    <br>
  </blockquote>
  <br>
You don't need to set your own tags at all, just use the "known" tag,
which will be set whenever a dhcp-host matches the MAC address.
  <br>
  <br>
Then do
  <br>
  <br>
dhcp-range=<a class="moz-txt-link-freetext" href="net:known,192.168.1.101,192.168.1.120,4h">net:known,192.168.1.101,192.168.1.120,4h</a>
  <br>
dhcp-range=<a class="moz-txt-link-freetext" href="net:#known,192.168.1.161,192.168.1.174,4h">net:#known,192.168.1.161,192.168.1.174,4h</a>
  <br>
  <br>
That way, 192.168.1.101... will only be used when the MAC address is
known, and 192.168.1.161... will only be used when the MAC address is
not known.
  <br>
  <br>
  <br>
It's important to understand the two uses of tags in dhcp-range
  <br>
  <br>
dhcp-range=&lt;tag&gt;,......
  <br>
  <br>
will _set_ the tag if that range is used.
  <br>
  <br>
dhcp-range=<a class="moz-txt-link-freetext" href="net:tag">net:tag</a>,.......
  <br>
  <br>
will _use_ the range if the tag is set.
  <br>
</blockquote>
Now I get it... thank you...<br>
<div class="moz-text-plain" wrap="true" graphical-quote="true"
 style="font-family: -moz-fixed; font-size: 12px;" lang="x-western"><br>
</div>
now, a couple of related questions... <br>
<br>
1) does "dhcp-range" allow me to match more than one tag? or to match
one (or more) and set another one?<br>
<br>
2) when I write:<br>
<div class="moz-text-plain" wrap="true" graphical-quote="true"
 style="font-family: -moz-fixed; font-size: 12px;" lang="x-western">
<pre wrap="">############# OUR PCs ##############
dhcp-host=00:22:33:44:55:01,192.168.1.101,<a
 class="moz-txt-link-freetext" href="net:tagIKnowYou,mycompany-PC-01">net:tagIKnowYou,mycompany-PC-01</a>
dhcp-host=00:22:33:44:55:02,192.168.1.101,<a
 class="moz-txt-link-freetext" href="net:tagIKnowYou,mycompany-PC-02">net:tagIKnowYou,mycompany-PC-02</a>
dhcp-host=00:22:33:44:55:03,192.168.1.101,<a
 class="moz-txt-link-freetext" href="net:tagIKnowYou,mycompany-PC-03">net:tagIKnowYou,mycompany-PC-03</a>
</pre>
</div>
<br>
I am <b>setting</b> (and not trying to <b><i>match</i></b>) the tag
"tagIKnowYou" for these hosts, am I?<br>
<br>
<br>
Thanx a lot, Simon, for your help, and for a truly amazing piece of
software that let me finally get rid of ISC's awful servers...<br>
<br>
Regards.<br>
<br>
<pre class="moz-signature" cols="72">-- 
Mariano Absatz - "El Baby"
<a class="moz-txt-link-abbreviated" href="mailto:el.baby@gmail.com">el.baby@gmail.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.clueless.com.ar">www.clueless.com.ar</a>
</pre>
<br>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br>
I am a Marxist--of the Groucho tendency.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Anonymous, French slogan<br>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br>
* TagZilla 0.066 * <a class="moz-txt-link-freetext" href="http://tagzilla.mozdev.org">http://tagzilla.mozdev.org</a><br>
<br>
</body>
</html>