[Dnsmasq-discuss] Cannot setup DHCP

Илья Евсеев Илья Евсеев
Wed, 01 Dec 2004 19:24:00 +0300


   Hi, folks!
I have dnsmasq-2.18 on my linux box with 2 network intefaces:
eth0 = 192.168.0.10/24 and eth1 = public IP.
/etc/dnsmasq.conf is like following
(I skip comments, blank lines and default values):
    bind-interfaces
    interface lo
    interface eth0
    expand-hosts
    dhcp-range=192.168.0.50,192.168.0.150,12h
    read-ethers  # really exists and accepted by dnsmasq
    dhcp-option=42,0.0.0.0  # NTP server = dnsmasq host

Dnsmasq starts and acts as DNS-service successfully,
also listens on UDP port 67, _but_! does nothing
as DHCP-service: "dhcpcd -T eth0" sleeps until timeout.
Periodically dnsmasq puts to syslog following message:
"dnsmasq: no address range available for DHCP request via eth0".

I don't understand this error, because 192.168.0.50-150
is completely owned by 192.168.0.10/24.
Well, can somebody explain me: what's wrong here?

WBR, Ilya