[Dnsmasq-discuss] DHCP request not getting to dnsmasq

Guennadi Liakhovetski g.liakhovetski at gmx.de
Tue Dec 25 11:59:32 GMT 2007


On Tue, 25 Dec 2007, Robin Atwood wrote:

> On Tuesday 25 Dec 2007, you wrote:
> 
> > > Yes, I see:
> > >  # tcpdump -i eth0 port 67
> > > tcpdump: verbose output suppressed, use -v or -vv for full protocol
> > > decode listening on eth0, link-type EN10MB (Ethernet), capture size 68
> > > bytes 23:00:37.564313 IP 0.0.0.0.bootpc > 255.255.255.255.bootps:
> > > BOOTP/DHCP, Request [|bootp]

So, DHCP packet arrives on your dhcp / dnsmasq server on eth0.

> > > but absolutely nothing in the dnsmasq logging. Below are all the
> > > non-comment lines in my dnsmasq.conf. This must be something very basic!
> > >
> > > domain-needed
> > > resolv-file=/etc/resolv-upstr.conf
> > > strict-order
> > > local=/binro.org/
> > > interface=eth0
> > > domain=binro.org
> > > dhcp-range=192.168.1.32,192.168.1.63,12h
> > > dhcp-option=option:router,192.168.1.1
> > > dhcp-option=42,0.0.0.0
> > > log-dhcp

This tells, that your eth0 network is 192.168.1.0.

> > strace -o /tmp/dnsmasq.trace -s 256 -tt -p `pidof dnsmasq`
> 
> I took the strace (attached) but cannot see anything to do with DHCP. I also 
> checked the Gentoo build options and there is nothing disabling DHCP. It's a 
> mystery.

But in your strace we see this:

sin_addr=inet_addr("203.146.0.20")

is this your (another) network then?

Hm, could you try this on your server as root:

netstat -lp | grep bootps

do you have any iptables rules active?

Thanks
Guennadi
---
Guennadi Liakhovetski



More information about the Dnsmasq-discuss mailing list