<br><br><div class="gmail_quote">On Nov 16, 2007 12:50 AM, Ben <<a href="mailto:abnormaliti@clivepeeters.com.au">abnormaliti@clivepeeters.com.au</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I need to setup dnsmasq to ignore unknown devices and I have been able<br>to do so with 2.40 but I have a configuration issue that I think may be<br>a bug.<br><br>Here is what i want to have.<br><br> dhcp-range=<a href="http://10.7.5.100" target="_blank">
10.7.5.100</a>,<a href="http://10.7.5.254" target="_blank">10.7.5.254</a>,24h<br> dhcp-ignore=#known<br> dhcp-hostsfile=/etc/dnsmasq.d/#hostsfile#<br><br> dhcp-host=tc01,<a href="http://10.7.5.13" target="_blank">
10.7.5.13</a><br> dhcp-host=tc02,<a href="http://10.7.5.14" target="_blank">10.7.5.14</a><br><br>This should, in theory, allocate IPs to devices with MAC addresses<br>listed in the '#hostsfile#' and devices named 'tc01' and 'tc02'. But
</blockquote><div><br>MAC addresses are normally listed in /etc/ethers, not /etc/hosts. I see you're using the brand new hostsfile feature, I don't know what version Simon implemented that but I think 2.40 is new enough. What format are the lines in the #hostsfile#? If you are using a hostsfile, why do you have dhcp-host lines in the main config?
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>when "dhcp-ignore=#known" is defined 'tc01' and 'tc02' are ignored.
<br><br>This config works, but requires the MAC for 'tc01' to be defined.<br><br> dhcp-range=<a href="http://10.7.5.100" target="_blank">10.7.5.100</a>,<a href="http://10.7.5.254" target="_blank">10.7.5.254</a>
,24h<br> dhcp-ignore=#known<br> dhcp-hostsfile=/etc/dnsmasq.d/#hostsfile#<br><br> dhcp-host=00:20:4a:9c:52:c2,<a href="http://10.7.5.13" target="_blank">10.7.5.13</a>,tc01<br><br>So what i am looking for is to be able to use "#known" and "hostsfile"
<br>as well as allocate fixed IPs to devices by name.</blockquote><div><br>I think you need to put the fixed IPs into the hostsfile along with the MAC address. Or are you trying to match against the client supplied ID? That can't be trusted.
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>Is this by design or a bug?<br><br>Ben<br><br><br>_______________________________________________
<br>Dnsmasq-discuss mailing list<br><a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br><a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br></blockquote></div><br>