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
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to