I think this is the basic configuration that should allow my computer to be on a different VLAN, depending on whether I plug in to lan1, lan2, or lan3.
But something seems to be conflicting.
When I have more than one DHCP server enabled, I don't seem to get an IP address.
I tried again and found that I still had problems getting an IP address, if I had a DHCP server enabled on more than one VLAN.
I realized that I forgot to specify a subnet mask when configuring the VLAN interfaces.
-I am not sure if setting a subnet is required. But I found I can now get the DHCP servers working on each VLAN. So if I plug my computer into either lan1, lan2, or lan3 - It gives me the expected IP corresponding to the correct VLAN.
I put a device with static IP 192.168.20.11 on VLAN20, and I tried setting up a forwarding rule in the Firewall, so that VLAN10 can reach VLAN20. But I could not reach/ping the device.
I don't know how to resolve the forwarding from VLAN10 to VLAN20.
And I don't really understand subnets. And whether or not specifying 255.255.255.0 will prevent me from reaching a different VLAN.
What I tried doing was:
Going to Traffic Rules and creating a rule on TCP/UDP, for the specific IP address of the NVR on the "camera" VLAN, allowing it to get to the WAN zone.
I named it NVR-to-WAN
The NVR's internet access seemed to kick in immediately after that
I was happy it is working. But I was still unsure whether this was the correct solution. And whether or not it is safe security-wise.
I honestly am not familiar with all the different protocols. So now that I have checked back here. I will update the protocol selection from the TCP+UDP I had selected, to 'all' instead.
AP2 has the "eco: 4" model of the MediaTek MT7621. I noticed that this device just wouldn't work with some 5GHz WiFi channels, whereas the "eco: 3" would.
Content filtering would be something like AdGuard Home or other DNS filters (including maybe PiHole running on a different device).
Speed limiting would be something like SQM. Depending on the processor in your router and the actual wan speed, you could end up slowing your whole network down.