[Dnsmasq-discuss] Dnsmasq and VLANs

Geert Stappers stappers at stappers.nl
Sat Feb 1 23:30:12 UTC 2025


On Sat, Feb 01, 2025 at 10:48:00PM +0000, Simon Kelley wrote:
> On 2/1/25 15:00, Donald Muller wrote:
> > *From:* Geert Stappers, *Sent:* Saturday, February 1, 2025 2:41:59 AM
> > > On Sat, Feb 01, 2025 at 01:28:54AM +0000, Donald Muller wrote:
> > > > Does dnsmasq work with VLANs?
> > > > I assume it does but could find no mention of vlans in the manpage.
> > > 
> > > Yeah,  ISO network layers.
> > > And network layers that are unaware of each other.
> > > 
> > > Answersing the question: Yes, continue your quest, it can be achived.
> > > 
> > So if it does support VLANs how do you set up DHCP to handle them?
> 
> Configure a dhcp-range for the IP subnet of each vlan you wish to have DHCP
> service, and if you're controlling which interfaces dnsmasq listens on, make
> sure that you include the interface corresponding to each VLAN.
> 
> Just the same way you would with networks on different physical cables or
> different wireless names. VLANs are the same: like two or more physical
> ethernets that happen to be on the same cable.

So please try it AND report back, with a message like:

  This is my output of `ip address show` on the computer running dnsmasq
  as DHCP server, these `dhcp-range` lines are in my dnsmasq
  configuration.


Groeten
Geert Stappers
-- 
Silence is hard to parse



More information about the Dnsmasq-discuss mailing list