<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <font face="sans-serif">Hi all,<br>
      <br>
      I've been using dnrd and isc-dhcpd for several years on my LAN and
      decided to give dnsmasq a try, to replace both. <br>
      <br>
      dnsmasq works fine as dns server on my ADSL gateway/webserver/WAP,
      a box running FreeBSD 8.1-release, but I am having difficulty
      getting dhcp working. The current version in the ports collection
      is: v2.55<br>
    </font><br>
    I have added these two lines to dnsmasqconf: <br>
    <br>
    dhcp-range=192.168.2.2,192.168.2.15,168h<br>
    dhcp-range=192.168.3.2,192.168.3.25,12h<br>
    <font face="sans-serif"><br>
      which correspond to the two internal network interfaces in my
      gateway box, ethernet (192.168.2.1) and WiFi (192.168.3.1)
      respectively. I then restart dnsmasq. However, the LAN client is
      unable to obtain a lease:<br>
      <br>
      $ sudo dhclient -v eth0<br>
      Internet Systems Consortium DHCP Client 4.1.1-P1<br>
      Copyright 2004-2010 Internet Systems Consortium.<br>
      All rights reserved.<br>
      For info, please visit <a class="moz-txt-link-freetext" href="https://www.isc.org/software/dhcp/">https://www.isc.org/software/dhcp/</a><br>
      <br>
      Listening on LPF/eth0/00:26:18:ae:99:af<br>
      Sending on   LPF/eth0/00:26:18:ae:99:af<br>
      Sending on   Socket/fallback<br>
      DHCPREQUEST on eth0 to 255.255.255.255 port 67<br>
      DHCPREQUEST on eth0 to 255.255.255.255 port 67<br>
      DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8<br>
      DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7<br>
      DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10<br>
      DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17<br>
      DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8<br>
      DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11<br>
      No DHCPOFFERS received.<br>
      Trying recorded lease 192.168.2.2<br>
      [...]<br>
      <br>
      On the server, I know that dnsmasq is listening on port 67:<br>
      <br>
      $ lsof -Pni | grep :67<br>
      dnsmasq   58614  nobody    4u  IPv4 0xc5982550      0t0     UDP
      *:67<br>
      <br>
      What could be the problem here? Am I missing something?<br>
      <br>
      Fwiw, isc-dhcpd works fine on the server.<br>
      <br>
      Thanks.</font><font face="sans-serif"><br>
    </font>
    <pre class="moz-signature" cols="72">-- 
  Colin Brace
  Amsterdam
  <a class="moz-txt-link-freetext" href="http://lim.nl">http://lim.nl</a>

</pre>
  </body>
</html>