I am trying to migrate from dhcpd to dnsmasq for my home network, without much luck.
I use the following simple configuration file:
port=0
interface=lan
bind-interfaces
bind-interfaces
dhcp-authoritative
dhcp-range=192.168.69.32,192.168.69.95,2h
dhcp-option=option:router,192.168.69.1
dhcp-option=option:dns-server,192.168.69.1
dhcp-range=192.168.69.32,192.168.69.95,2h
dhcp-option=option:router,192.168.69.1
dhcp-option=option:dns-server,192.168.69.1
log-dhcp
My lan interface is configured as follows:
6: lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:c0:ca:89:35:9c brd ff:ff:ff:ff:ff:ff
inet 192.168.69.1/24 scope global lan
valid_lft forever preferred_lft forever
inet 192.168.69.2/24 scope global secondary lan
valid_lft forever preferred_lft forever
inet6 fc00::c0a8:4502/120 scope global
valid_lft forever preferred_lft forever
inet6 fc00::c0a8:4501/120 scope global
valid_lft forever preferred_lft forever
inet6 fe80::7c2b:c1ff:fec3:674d/64 scope link
valid_lft forever preferred_lft forever
link/ether 00:c0:ca:89:35:9c brd ff:ff:ff:ff:ff:ff
inet 192.168.69.1/24 scope global lan
valid_lft forever preferred_lft forever
inet 192.168.69.2/24 scope global secondary lan
valid_lft forever preferred_lft forever
inet6 fc00::c0a8:4502/120 scope global
valid_lft forever preferred_lft forever
inet6 fc00::c0a8:4501/120 scope global
valid_lft forever preferred_lft forever
inet6 fe80::7c2b:c1ff:fec3:674d/64 scope link
valid_lft forever preferred_lft forever
in the log, when I start dnsmasq, I can see:
Jan 02 11:25:11 archimede systemd[1]: Starting A lightweight DHCP and caching DNS server: dhcp...
Jan 02 11:25:11 archimede dnsmasq[8253]: dnsmasq: syntax check OK.
Jan 02 11:25:11 archimede systemd[1]: Started A lightweight DHCP and caching DNS server: dhcp.
Jan 02 11:25:11 archimede dnsmasq[8255]: started, version 2.76 DNS disabled
Jan 02 11:25:11 archimede dnsmasq[8255]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conn
Jan 02 11:25:11 archimede dnsmasq-dhcp[8255]: DHCP, IP range 192.168.69.32 -- 192.168.69.95, lease time 2h
Jan 02 11:25:11 archimede dnsmasq-dhcp[8255]: DHCP, sockets bound exclusively to interface lan
Jan 02 11:25:11 archimede dnsmasq[8253]: dnsmasq: syntax check OK.
Jan 02 11:25:11 archimede systemd[1]: Started A lightweight DHCP and caching DNS server: dhcp.
Jan 02 11:25:11 archimede dnsmasq[8255]: started, version 2.76 DNS disabled
Jan 02 11:25:11 archimede dnsmasq[8255]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conn
Jan 02 11:25:11 archimede dnsmasq-dhcp[8255]: DHCP, IP range 192.168.69.32 -- 192.168.69.95, lease time 2h
Jan 02 11:25:11 archimede dnsmasq-dhcp[8255]: DHCP, sockets bound exclusively to interface lan
and nestat shows dnsmasq listening on UDP 0.0.0.0 port 67.
However it does not work. Using tcpdump, I can see incoming dhcp lease requests from clients, but there is no server response. I know the tcpdump command I am using is correct, because if I switch back to dhcpcd, I can see both dhcp client requests and server replies.
What did I miss? Thanks
_______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss