[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dnsmasq antwortet nicht auf DHCP-Anfragen



Hallo zusammen,

ich möchte gern dnsmasq für DNS und DHCP einsetzen. Bislang nutzte ich
noch historisch bedingt, bind und den ISC DHCP server. Für ein (sehr)
kleines Netz würde ich aber gern auf ein schlankeres Tool setzen.

Die Umstellung auf dnsmasq bezüglich DNS war unproblematisch und
funktioniert auf allen Clients. Aber der DHCP-Dienst klemmt.


Meine /etc/dnsmasq.conf:
interface=lo
interface=br0
# Wirklich bridge, da ich auch KVM mit host-bridge nutze.
# Probeweise habe ich auch zwischenzeitlich interface=eth0
# dazu geschrieben.
bind-interfaces
domain=local.example.com
dhcp-range=192.168.100.101,192.168.100.199,72h


Das wird beim Starten des Dienstes geloggt:

Jun  4 10:39:02 server dnsmasq[11690]: compile time options: IPv6
GNU-getopt DBus I18N DHCP TFTP
Jun  4 10:39:02 server dnsmasq-dhcp[11690]: DHCP, IP range
192.168.100.101 -- 192.168.100.199, lease time 3d
Jun  4 10:39:02 server dnsmasq-tftp[11690]: TFTP root is
/opt/thinclients/boot secure mode
Jun  4 10:39:02 server dnsmasq[11690]: reading /etc/resolv.conf
Jun  4 10:39:02 server dnsmasq[11690]: using nameserver 192.168.100.250#53
Jun  4 10:39:02 server dnsmasq[11690]: ignoring nameserver 127.0.0.1 -
local interface
Jun  4 10:39:02 server dnsmasq[11690]: read /etc/hosts - 22 addresses


Clients bekommen leider keine Konfiguration zugewiesen, obwohl die
Pakete auf dem Host ankommen:

tcpdump:
10:36:07.258608 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from c8:0a:a9:c0:49:e1 (oui Unknown), length 300
10:36:14.016833 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from c8:0a:a9:c0:49:e1 (oui Unknown), length 300


dnsmasq lauscht meiner Ansicht nach auch auf den richtigen Schnittstellen:

tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 0 8356129 12819/dnsmasq
tcp 0 0 192.168.100.100:53 0.0.0.0:* LISTEN 0 8356126 12819/dnsmasq
tcp6 0 0 ::1:53 :::* LISTEN 0 8356124 12819/dnsmasq
tcp6 0 0 fe80::78f6:cdff:fef7:53 :::* LISTEN 0 8356122 12819/dnsmasq
udp 0 0 127.0.0.1:53 0.0.0.0:* 0 8356130 12819/dnsmasq
udp 0 0 192.168.100.100:53 0.0.0.0:* 0 8356127 12819/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 0 8356115 12819/dnsmasq
udp 0 0 127.0.0.1:69 0.0.0.0:* 0 8356131 12819/dnsmasq
udp 0 0 192.168.100.100:69 0.0.0.0:* 0 8356128 12819/dnsmasq
udp6 0 0 ::1:53 :::* 0 8356125 12819/dnsmasq
udp6 0 0 fe80::78f6:cdff:fef7:53 :::* 0 8356123 12819/dnsmasq


Wenn ich die DHCP-Funktion (dhcp-range) in dnsmasq deaktiviere, kann ich
den ISC DHCP server wieder anschalten, dann funktioniert es auch. Ich
möchte daher Netzwerkprobleme, clientseitige Probleme oder iptables
ausschließen.

Danke für Tipps

Michael

-- 
EDV-Serviceteam Annika & Michael Hierweck GbR
Egerstraße 53, 44225 Dortmund (Germany)
http://www.edv-serviceteam.net


Reply to: