Trying to get my head around VLANs and see if I can use them for what I’m trying to achieve.
I have VyOS running on a router with 4 NICs. I wan’t to use VLANs to segregate my LAN into two segments that cannot talk to each other, but can both connect to the internet. In addition I want one NIC to serve as a “trunk” port that carries both VLANs to a ubiquiti unifi, which broadcasts a SSID for each VLAN.
Something like this:
eth0 - wan
eth1 - vlan1 -> switch1 -> lan_segment1
eth2 - vlan2 -> switch2 -> lan_segment2
eth3 - both vlans -> unifi -> 2 SSIDs (one on vlan1, the other on vlan2)
Now to my questins:
- Is this possible? It seems like it should be, but all the config examples I’ve seen show vlans being assigned to a specific interface.
- Do the ethernet switches (switch1 and switch2 above) need to support VLANs, or can I get away with the cheap ones I have laying around?
- How do I go about configuring this in VyOS?
thanks