[Dnsmasq-discuss] Multiple Shared Networks?

Geert Stappers stappers at stappers.nl
Mon Oct 31 17:21:45 UTC 2022


On Mon, Oct 31, 2022 at 10:15:19AM -0400, Rich Otero via Dnsmasq-discuss wrote:
> My dnsmasq server provides DHCP for more than one hundred subnets like this:
> 
> dhcp-range=set:172.18.14.0-24,172.18.14.0,static,255.255.255.0
> 
> dhcp-option=tag:172.18.14.0-24,option:router,172.18.14.1
> 
> dhcp-range=set:172.18.15.0-24,172.18.15.0,static,255.255.255.0
> 
> dhcp-option=tag:172.18.15.0-24,option:router,172.18.15.1
> 
> dhcp-range=set:172.18.16.0-24,172.18.16.0,static,255.255.255.0
> 
> dhcp-option=tag:172.18.16.0-24,option:router,172.18.16.1
> 
> 
> I need to disconnect the dnsmasq server from each of those subnets while
> continuing to provide reserved leases for clients in them, so I recently
> upgraded from v2.75 to v2.87 to gain the shared-network option. I am
> currently testing the change on one subnet and it is working as expected:
> 
> dhcp-range=set:172.18.15.0-24,172.18.15.0,static,255.255.255.0
> 
> dhcp-option=tag:172.18.15.0-24,option:router,172.18.15.1
> 
> shared-network=enp2s0,172.18.15.0
> 
> 
> Ultimately, I will need the shared-network behavior for every subnet. Is it
> allowed to have multiple shared-network directives in the config?

Meanwhile that has been tried by original poster.

This email is an invite to report back how that it did go.

A "Yes, multiple shared-networks are allowed by the config
checker and it works as expected" will do.


Upon "doesn't work" is more effort expected, like reporting how it fails
and what was the hoped outcome. Because that is information that helps
making dnsmasq possible better.


Groeten
Geert Stappers


P.S.
I'm aware that https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2022q4/016667.html
screams nasty stuff like

 * Unawareness of discsussion order
 * Unawareness of line wrap behaviour of email client program
 * Hope that insults get unnoticed
-- 
Silence is hard to parse



More information about the Dnsmasq-discuss mailing list