Comment on Simplest VLAN setup?

neidu4@piefed.social ⁨1⁩ ⁨day⁩ ago

VLANs have been a major part of my career for the past 20 years, and it seems that the most common thing I need to teach people joining me at work is this: Switches don’t provide access between VLANs. Routers do.

Sure, it’s reasonably obvious to many, and there are exceptions, but a very common question I get is how one can set up VLANs so that some hosts can talk to each other across VLANs.

There are many ways to set up VLANs, but I find it easiest to number a VLAN based on an octet in the IP scope of its clients. For example:
172.20.32.0/24 gets VLAN 32
172.20.40.0/24 gets VLAN 40
…etc

And then you plug a router into each of those VLANs and set up firewall rules according to your preferences. The router can be connected via a single trunk cable, or if you’re lazy, tou use a dedicated interface and cable for each VLAN.

So back to your question: Pit your cameras on an isolated VLAN, provide that VLAN with a gateway, and then you config the gateway to block internet traffic, but allow access between your camera vlan and some (or all) hosts on your other subnets/vlans.

source
Sort:hotnewtop