[Dnsmasq-discuss] [BUG] dhcp server netmask determination
Andrew White
andywhite at gmail.com
Thu Sep 5 17:14:11 BST 2019
Hi,
I discovered that using dnsmasq as a dhcp (ip4) server on a system with
another nic that has no ip, causes the automatic determination of the
subnet mask to fail, and the server offers leases with a subnet mask of
0.0.0.0. I have worked around it by specifying the subnet mask in the
config.
dnsmasq configuration
---
dhcp-option=option:domain-name, "local"
dhcp-authoritative
dhcp-no-override
dhcp-leasefile=/var/db/dnsmasq.dhcpd.leases
dhcp-range=set:lan,192.168.1.100,192.168.1.199
dhcp-option=tag:lan,option:dns-server,192.168.1.1
dhcp-option=tag:lan,option:router,192.168.1.1
---
system (freebsd 11.3) interfaces
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vr1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
media: Ethernet autoselect (none)
status: no carrier
Thanks
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20190905/617e726d/attachment.html>
More information about the Dnsmasq-discuss
mailing list