In opnSense:- create a VLAN interface for each VLAN. - Give it a static address in a subnet that you want on that vlan. This will effectively be the address of the DHCP server, so don’t use the .1 address so that can be the default route later (use e.g. 192.168.18.2). - Give the interface a gateway that’s the .1 address (which will be set up later to be the address of the USW switch)- set up a DHCP server on that VLAN interface - override the gateway the server sends out to be the .1 address on your VLAN subnet.
With 2 Gateways in one network you always have trouble with asynchron routing.
With 2 Gateways in one network you always have trouble with asynchron routing. If you arent a pro I'd not do this
Static IPv4 configuration IPv4 address xxx.xxx.xxx.xxx IPv4 Upstream Gateway Auto-detect +
It will work, but OPN wants to send packets to this network via shortest path which is local interface and not layer3 switch. I didnt read the Blog, of course you can work around this, but the solution is prone to errors