Segment a network with VLANs and 802.1Q trunks
8 steps · about 1 h 59 min · Intermediate
- Explain what a VLAN separates and why (article, Wikipedia, 12 min)
Covers broadcast domains, access vs trunk ports and typical uses.
- 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.
- Create VLANs and assign access ports on a switch (reference, Cisco, 25 min)
Vendor configuration steps that match how most managed switches work.
- 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.
- Add tagged VLAN interfaces on a Linux host (article, ArchWiki, 12 min)
Shows ip link and persistent configs for a Linux trunk endpoint.
- Make VLAN interfaces persistent with Netplan (reference, Netplan documentation, 15 min)
The vlans section declares id and link so tags survive reboots.
- Route between VLANs on a firewall (reference, Netgate pfSense documentation, 15 min)
Shows how a router-on-a-stick firewall connects and filters VLANs.
- Prevent VLAN hopping attacks (article, Wikipedia, 8 min)
Explains switch spoofing and double tagging and the settings that stop them.