[Dnsmasq-discuss] troubles with dhcp

Colin Brace cb at lim.nl
Sat Oct 23 13:37:42 BST 2010


  Hi all,

I've been using dnrd and isc-dhcpd for several years on my LAN and 
decided to give dnsmasq a try, to replace both.

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

I have added these two lines to dnsmasqconf:

dhcp-range=192.168.2.2,192.168.2.15,168h
dhcp-range=192.168.3.2,192.168.3.25,12h

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:

$ sudo dhclient -v eth0
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:26:18:ae:99:af
Sending on   LPF/eth0/00:26:18:ae:99:af
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
No DHCPOFFERS received.
Trying recorded lease 192.168.2.2
[...]

On the server, I know that dnsmasq is listening on port 67:

$ lsof -Pni | grep :67
dnsmasq   58614  nobody    4u  IPv4 0xc5982550      0t0     UDP *:67

What could be the problem here? Am I missing something?

Fwiw, isc-dhcpd works fine on the server.

Thanks.

-- 
   Colin Brace
   Amsterdam
   http://lim.nl


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20101023/966bd972/attachment.htm 


More information about the Dnsmasq-discuss mailing list