I’m moving soon and planning some overhauls to our home lab and local network.

We have security cameras and I really want them on their own VLAN without internet access. Then I got even more ambitious and decided I want to separate a lot of things into different VLANs without internet access, but can still talk to each other.

My long term goal will be to have an OPNsense box that I can do even more intricate network configs with, however in the short term I don’t think I can afford the hardware to do so. So for now, I’m trying to find the simplest, ideally cheapest way to implement at least one VLAN in my local network.

My ISP’s router will not support it, however should support bridge mode. So I’m thinking the easiest way is to buy a VLAN capable router and pass through to it, however I’m still new to this and learning as I go.

Curious if anyone here has VLAN tips, tricks, or suggestions for a cheap/easy setup.

Cheers!

  • neidu4@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    23 minutes ago

    “this diagram”

    I would use the VLAN capable switch as your first switch after the router. That way, you can assign a VLAN to everything. And your “any dumb switch” can be downstream of one of them, serving whichever VLAN it is connected to.

    How this works:
    VLAN ports have two modes. Terminology might change between vendors, but they all do the same:

    • Untagged (often called Access port). This is a port where you connect anything that doesn’t speak VLAN itself. A PC¹, a Camera, or even a dumb switch. Any traffic coming into an Access port will be assigned any VLAN ID (often called PVID) configured for that port. It is called Untagged, because it doesn’t require any incoming traffic to already have a VLAN tag, and it will strip off the vlan tag from any outgoing traffic.
    • Tagged ports REQUIRE a vlan tag on any traffic passing through it. Ports of this type also often have a list of VLAN IDs that they will allow through. The only thing to keep in mind is that whatever is connected in the other end must also be a tagged port with the same list of VLANs. This is typically used between two switches so that a single cable can carry traffic from multiple VLANs. This kind of connection is often called a Trunk

    ¹: Yes, PCs can also connect to a tagged port, but then you have to set up your network config to also use VLAN tagging. In most cases, it’s easier to just connect the PC to an Untagged port. One benefit of connecting a PC to a tagged port is that you can configure this PC to talk on multiple VLANs with a separate IP for each, so that you can in effect be connected to multiple networks with only one cable.

    Note: Once you use VLAN tagging on a switch, all ports will need to be set up with a VLAN. I noticed that you only specified VLAN 1 in your second diagram. If you want the other stuff to be isolated, sign that to a different VLAN ID.

    Another note: I am ineffiently typing this on my phone, so if any details are unclear or I need to elaborate more on something, let me know, and I’ll do so when I’m back on my PC.