Segment a network with VLANs and 802.1Q trunks

8 steps · about 1 h 59 min · Intermediate

  1. Explain what a VLAN separates and why (article, Wikipedia, 12 min)

    Covers broadcast domains, access vs trunk ports and typical uses.

  2. Read the 802.1Q tag inside an Ethernet frame (article, Wikipedia, 12 min)

    Shows the tag fields, the native VLAN and how trunks carry many VLANs.

  3. Create VLANs and assign access ports on a switch (reference, Cisco, 25 min)

    Vendor configuration steps that match how most managed switches work.

  4. Configure tagged and untagged VLAN ports on a router (reference, MikroTik documentation, 20 min)

    A second vendor's take with clear trunk and access port examples.

  5. Add tagged VLAN interfaces on a Linux host (article, ArchWiki, 12 min)

    Shows ip link and persistent configs for a Linux trunk endpoint.

  6. Make VLAN interfaces persistent with Netplan (reference, Netplan documentation, 15 min)

    The vlans section declares id and link so tags survive reboots.

  7. Route between VLANs on a firewall (reference, Netgate pfSense documentation, 15 min)

    Shows how a router-on-a-stick firewall connects and filters VLANs.

  8. Prevent VLAN hopping attacks (article, Wikipedia, 8 min)

    Explains switch spoofing and double tagging and the settings that stop them.