OPNsense Forum

English Forums => General Discussion => Topic started by: prutz0r on September 25, 2026, 08:38:58 PM

Title: Going from no VLAN to VLAN to get mesh system to work
Post by: prutz0r on September 25, 2026, 08:38:58 PM
I have this Netgear mesh system that I want to use a wired backhaul (essentially making it non mesh roaming AP's). After some research it seems the main AP (the MR) needs to sit between router and network switch. I have a Protectli with OpnSense and I see no use to put this in between the router and my 16p Netgear smart switch. The MR has one other port, a LAN port, that the satellite (MS) needs to be connected to either directly or through a switch. Connecting them both to the 16p switch doesn´t work. My observations:
I do not want the MR in between the router and switch as their location is very mediocre for an access point ánd I'm fundamentally against having devices handle traffic for no reason - wired-only traffic should pass that device. So I though that this might something a VLAN might solve. Put my whole LAN in VLAN10 and the MR LAN interface and MS in VLAN20. Then seperate them by blocking all traffic between 10 and 20 as the MR bridges these networks anyway. I have questions about doing this. I know about the theory but have no experience in practice and only one network to test this on, being my own house network. So I want to try and get things as right as possible from the start. I found this tutorial:
Dutch - https://privacygear.nl/guides/opnsense-vlan-gids/
English (automtically translated) - https://privacygear-nl.translate.goog/guides/opnsense-vlan-gids/?_x_tr_sl=nl&_x_tr_tl=en&_x_tr_hl=nl&_x_tr_pto=wapp


I have a Netgear smart switch. I'm thinking of how I should configure this to work with OpnSense. Would I have to configure it like this?

Thanks a lot.
Title: Re: Going from no VLAN to VLAN to get mesh system to work
Post by: klinebau on September 25, 2026, 09:04:54 PM
I don't understand why you wouldn't connect the mesh router to the switch.  This is the correct location and it should be setup in AP mode.  There is no reason for VLANs just to connect a mesh system.  You might want VLANS for other purposes, but it is not needed to connect a mesh system.
Title: Re: Going from no VLAN to VLAN to get mesh system to work
Post by: prutz0r on September 25, 2026, 09:32:34 PM
Quote from: klinebau on September 25, 2026, 09:04:54 PMI don't understand why you wouldn't connect the mesh router to the switch.  This is the correct location and it should be setup in AP mode.  There is no reason for VLANs just to connect a mesh system.  You might want VLANS for other purposes, but it is not needed to connect a mesh system.
Because my whole network goes down or I need to run a cable directly between the MR and MS, while also running a cable between the router and the MR, essentially creating a 1gbps bottleneck between my router, having to run around 30 meters of extra cabling and also I see no reason why all network traffic needs to go through this device. I tried to describe this in the observations, but perhaps you can let me know why they're unclear. I can add more information.
Title: Re: Going from no VLAN to VLAN to get mesh system to work
Post by: nero355 on September 25, 2026, 10:19:07 PM
Quote from: prutz0r on September 25, 2026, 09:32:34 PMBecause my whole network goes down or I need to run a cable directly between the MR and MS
I am guessing your Netgear Switch is blocking some kind of protocol that those things use to communicate...
Reason I am saying this is that I have read something similar once, but I can't remember anymore what the exact issue was :(

Can't you just DISABLE MESH functionality and configure all the units like a simple Accesspoint ?!

Another possible issue :
Not having a proper (R)STP setup on your Switches combined with the Mesh functionality of those things can indeed cause serious issues!



Now to answer your question about VLANs partially :
- When your OPNsense Interface is just the Default LAN for example you need to transport it as UNTAGGED to a Switch or Accesspoint.
- When your OPNsense Interface has VLANs assigned to it you need to transport them as TAGGED to a Switch or Accesspoint.
- VLANs between Switches usually go TAGGED too unless you are doing something special for whatever reason.
- VLANs from Switches to Accesspoints go TAGGED too unless you are doing something special for whatever reason.

Simple common example of "Something special" :
Some equipment needs to have it's Management Network transported as UNTAGGED instead of TAGGED.
Since your MESH units probably don't know what to do with VLANs on the "Switch side" you will need to do something like this, because both the regular traffic and management traffic will go via the same connection/network :)



Heel veel succes alvast! ;)
Title: Re: Going from no VLAN to VLAN to get mesh system to work
Post by: prutz0r on September 26, 2026, 11:01:03 AM
Quote from: nero355 on September 25, 2026, 10:19:07 PM
Quote from: prutz0r on September 25, 2026, 09:32:34 PMBecause my whole network goes down or I need to run a cable directly between the MR and MS
I am guessing your Netgear Switch is blocking some kind of protocol that those things use to communicate...
Reason I am saying this is that I have read something similar once, but I can't remember anymore what the exact issue was :(

Can't you just DISABLE MESH functionality and configure all the units like a simple Accesspoint ?!

Another possible issue :
Not having a proper (R)STP setup on your Switches combined with the Mesh functionality of those things can indeed cause serious issues!
I read about loop prevention being able to cause all kinds of trouble so that's disabled. I really think the WAN and LAN interface are bridged in AP mode thus causing lot's of issues when connecting both to a switch on the same subnet. I think it's looping. That theory does fit my observations so far. Assuming mesh means using a wireless connection as backhaul and automatically finding the best path and considering roaming a seperate feature, mesh is disabled automatically when connecting the satellite, MS, wired to the MR. However the MR interfaces still seem bridged. To stop the loop I think I can solve the puzzle by isolating the connection between the MS and MR as networking is taken care of by the bridge. The MS have their own web interface but there is almost nothing you can configure. Rebooting, perhaps syncing for wireless mesh and that's about it. They really depend on the MR.

QuoteNow to answer your question about VLANs partially :
- When your OPNsense Interface is just the Default LAN for example you need to transport it as UNTAGGED to a Switch or Accesspoint.
That would be the situation without VLANs that I have right now I think?

Quote- When your OPNsense Interface has VLANs assigned to it you need to transport them as TAGGED to a Switch or Accesspoint.
My default LAN will be VLAN 10 so that would mean connection from router to switch is tagged?

Quote- VLANs between Switches usually go TAGGED too unless you are doing something special for whatever reason.
I have only one switch.

Quote- VLANs from Switches to Accesspoints go TAGGED too unless you are doing something special for whatever reason.

Simple common example of "Something special" :
Some equipment needs to have it's Management Network transported as UNTAGGED instead of TAGGED.
Since your MESH units probably don't know what to do with VLANs on the "Switch side" you will need to do something like this, because both the regular traffic and management traffic will go via the same connection/network :)
This system is completely unaware of VLANs, it's not like Ubiquity where you apply a VLAN to an SSID so I would think the traffic is untagged anyway to the MR interface that connects the access points to the rest of the network and the internet? And then apply a fixed PVID to the relevant switch port?

QuoteHeel veel succes alvast! ;)
Bedankt, interessante puzzel, alleen wil ik niet voor iedereen in het huis dagen lang het netwerk uit de lucht hebben ;)
Title: Re: Going from no VLAN to VLAN to get mesh system to work
Post by: nero355 on September 26, 2026, 02:38:14 PM
Quote from: prutz0r on September 26, 2026, 11:01:03 AM
QuoteNow to answer your question about VLANs partially :
- When your OPNsense Interface is just the Default LAN for example you need to transport it as UNTAGGED to a Switch or Accesspoint.
That would be the situation without VLANs that I have right now I think?
Yup!

Quote
Quote- When your OPNsense Interface has VLANs assigned to it you need to transport them as TAGGED to a Switch or Accesspoint.
My default LAN will be VLAN 10 so that would mean connection from router to switch is tagged?
Yup!

Quote
Quote- VLANs from Switches to Accesspoints go TAGGED too unless you are doing something special for whatever reason.

Simple common example of "Something special" :
Some equipment needs to have it's Management Network transported as UNTAGGED instead of TAGGED.
Since your MESH units probably don't know what to do with VLANs on the "Switch side" you will need to do something like this, because both the regular traffic and management traffic will go via the same connection/network :)
This system is completely unaware of VLANs, it's not like Ubiquity where you apply a VLAN to an SSID so I would think the traffic is untagged anyway to the MR interface that connects the access points to the rest of the network and the internet? And then apply a fixed PVID to the relevant switch port?
Sounds like a plan! :)

But I was thinking...

Any chance that there is some kind of alternative firmware available for these things ?!
Slapping OpenWRT on them for example would solve the whole issue pretty easily! :)
Title: Re: Going from no VLAN to VLAN to get mesh system to work
Post by: prutz0r on September 26, 2026, 07:42:53 PM
Quote from: nero355 on September 26, 2026, 02:38:14 PMBut I was thinking...

Any chance that there is some kind of alternative firmware available for these things ?!
Slapping OpenWRT on them for example would solve the whole issue pretty easily! :)
Great idea. But then I searched for the model numbers and openwrt and no result unfortunately.
Title: Re: Going from no VLAN to VLAN to get mesh system to work
Post by: BoNetTech on September 27, 2026, 08:02:12 PM
Your last idea (untagged + fixed PVID for the mesh ports) is the right one. You can make it even simpler, and avoid the "network down for days" scenario, because you don't need VLAN 10 at all, and OPNsense doesn't need to change.

VLAN 20 only has to be a "virtual cable" inside the switch between the MR LAN port and the MS. Since the MR bridges WAN↔LAN in AP mode, the MS clients get their IP from your main network through that bridge, exactly as you observed when you cabled them directly.

So, on the switch only:

VLAN 1 (default): leave everything as it is: OPNsense port, MR WAN, all other devices. Untagged, PVID 1.
VLAN 20: the two ports for MR LAN and MS as untagged members with PVID 20, removed from VLAN 1.
The OPNsense port is not a member of VLAN 20, and no VLAN 20 interface/DHCP on OPNsense.

Your 192.168.1.1/24 LAN, DHCP and static leases stay untouched, so no subnet conflict and nothing to migrate.

Two tips:

Configure from a PC on a port you're not changing, in this order: add the two ports to VLAN 20 → set PVID 20 → remove them from VLAN 1. That way you won't lock yourself out, and if something goes wrong you only need to revert two ports.
Leave loop prevention/STP off for this change. Most smart switches run a single STP instance that isn't VLAN-aware, so if the MR passes BPDUs across its bridge, the switch may see VLAN 1 → MR → VLAN 20 as a loop and block one of those ports. If you want STP back later as a safety net, disable it on the MR WAN port and the two VLAN 20 ports.
Title: Re: Going from no VLAN to VLAN to get mesh system to work
Post by: Privacygear.nl on October 05, 2026, 10:54:59 PM
Quote from: prutz0rIs there anything missing from that tutorial?

Hi prutz0r, I wrote the PrivacyGear guide you linked. Thanks for using it, and your question was a fair one: the guide assumed a brand-new network.

I've added a section for exactly your situation (keeping your existing 192.168.1.0/24 by moving the LAN assignment onto the VLAN instead of creating a second interface, plus what happens to static leases). While checking it against the OPNsense docs I also fixed the DHCP step (Dnsmasq instead of the end-of-life ISC server) and the firewall rule order.

English version, no Google Translate needed:
https://privacygear.nl/en/guides/opnsense-vlan-guide/

Hope the mesh setup works out.