On 7/10/2021 9:57 AM, Paul Gear via Dnsmasq-discuss wrote:
On 10/7/21 5:13 pm, john doe wrote:
On 7/10/2021 7:58 AM, Paul Gear via Dnsmasq-discuss wrote:
Hi all,
It's been a while since I originally posted about this, and I've done a
lot of experimenting without landing on a working setup.
I'm trying to get a very simple test case working, where I have a number
of vnet interfaces, all configured with the link-local address
169.254.0.1/16, and have dnsmasq allocate the leases out of a different
range (in this case, I'm using a portion of the documentation prefix,
203.0.113.0/29). Here's my configuration:
pid-file=/var/lib/dnsmasq-vnet/dnsmasq-vnet.pid
bind-dynamic
interface=vnet*
log-dhcp
no-hosts
dhcp-range=203.0.113.0, 255.255.255.248, 1d
From (1):
" this dhcp-range MUST include the netmask."
Unless I'm missing something, I don't see a subnet mask being specified.
1) https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
Hi John,
Unless I'm missing something 255.255.255.248 is a netmask, and dnsmasq
doesn't appear to support CIDR notation in dhcp-range specifications. At
least, when I attempt to use /29 instead, it fails to start, saying:
I should have said, 'I don't see a subnet mask being specified in the
correct column' (sorry about that).
Still according to the same man page:
"--dhcp-range=[tag:<tag>[,tag:<tag>],][set:<tag>,]<start-addr>[,<end-addr>|<mode>][,<netmask>[,<broad"
dnsmasq: bad dhcp-range at line 41 of /var/lib/dnsmasq-vnet/dnsmasq.conf
The mask is specified as an 'end-range'.
--
John Doe
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss