[Dnsmasq-discuss] DHCP doesn't seem to respond to requests(?)
dnsmasq at lovelady.com
dnsmasq at lovelady.com
Thu May 19 00:35:52 BST 2011
Hi, All:
I am a new user of DNSMASQ, and I have the DNS portion working great! What
a great tool, and so easy!
However, I'm struggling with the DHCP portion. This is being run on a linux
server in my small network, and DHCP has been supplied by the cable modem.
(I did turn off DHCP at the modem.) I have decided to start small -
connecting with an UBUNTU laptop - but my dhclient eth0 requests
consistently end with "No DHCPOFFERS received." I've been through the past
year of your logs, looking at subjects including DHCP and didn't find a hit,
so I've come here.
My configuration is simple for now:
domain-needed
bogus-priv
expand-hosts
domain=lovelady.com
dhcp-range=192.168.0.150,192.168.0.249,72h
( also added the following line to see if that would improve the situation,
but no joy. :
dhcp-host=00:23:8b:8a:ad:70,192.168.0.249
Server's eth0 configuration is:
eth0 Link encap:Ethernet HWaddr 00:26:F2:DB:94:4B
inet addr:192.168.0.251 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47896 errors:0 dropped:0 overruns:0 frame:0
TX packets:31135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:7831943 (7.4 MiB) TX bytes:6542941 (6.2 MiB)
Interrupt:11
My client connection attempt looks like:
/home/dennis> sudo dhclient eth0
[sudo] password for dennis:
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/00:23:8b:8a:ad:70
Sending on LPF/eth0/00:23:8b:8a:ad:70
Sending on Socket/fallback
DHCPREQUEST of 192.168.0.12 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.0.12 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
/var/log/messages on the server side looks pretty good (to these untrained
eyes) :
May 18 19:23:37 lovestora-1 dnsmasq[4673]: started, version 2.57 cachesize
150
May 18 19:23:37 lovestora-1 dnsmasq[4673]: compile time options: IPv6
GNU-getopt no-DBus no-I18N DHCP TFTP no-IDN
May 18 19:23:37 lovestora-1 dnsmasq-dhcp[4673]: DHCP, IP range 192.168.0.150
-- 192.168.0.249, lease time 3d
May 18 19:23:37 lovestora-1 dnsmasq[4673]: reading /etc/resolv.conf
May 18 19:23:37 lovestora-1 dnsmasq[4673]: using nameserver 65.32.5.112#53
May 18 19:23:37 lovestora-1 dnsmasq[4673]: using nameserver 65.32.5.111#53
May 18 19:23:37 lovestora-1 dnsmasq[4673]: read /etc/hosts - 2 addresses
And netstat -panel|grep dnsmask|grep 67 reveals:
tcp 0 0 0.0.0.0:53 0.0.0.0:*
LISTEN 0 22419 4673/dnsmasq
udp 0 0 0.0.0.0:53 0.0.0.0:*
0 22418 4673/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:*
0 22415 4673/dnsmasq
unix 2 [ ] DGRAM 22429 4673/dnsmasq
(Wouldn't you know the process ID happens to have 67 imbedded in it? :\ )
What might I be missing? How can I diagnose? I've found a few
troubleshooting tips online, but they all seem to point to configurations
like this one, so I'm baffled. (I did find a question about iptables, but
couldn't decipher how to determine if that's a problem.) FTR, my associated
iptables lines look like:
# and allow DHCP
iptables -A INPUT -p UDP --dport bootpc -j ACCEPT || die
iptables -A INPUT -p UDP --dport bootps -j ACCEPT || die
I welcome any advice.
Dennis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20110518/6e080fc6/attachment.htm
More information about the Dnsmasq-discuss
mailing list