[Dnsmasq-discuss] Simplest working "shared-network" configuration? (was Re: dnsmasq on an IPv4 /32 interface)

Paul Gear paul-dnsmasq at gear.email
Sat Jul 10 07:57:40 UTC 2021

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
>>, and have dnsmasq allocate the leases out of a different
>> range (in this case, I'm using a portion of the documentation prefix,
>>  Here's my configuration:
>> pid-file=/var/lib/dnsmasq-vnet/dnsmasq-vnet.pid
>> bind-dynamic
>> interface=vnet*
>> log-dhcp
>> no-hosts
>> dhcp-range=,, 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 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:

dnsmasq: bad dhcp-range at line 41 of /var/lib/dnsmasq-vnet/dnsmasq.conf


More information about the Dnsmasq-discuss mailing list