02Chapter 2: VLANs as separate broadcast domainsThis chapter assumes you know Ethernet frames and MAC addresses, how a Layer 2 switch learns, forwards, floods and filters frames, IPv4 subnetting, and basic switch command-line use. It explains what a VLAN is and how a switch treats traffic once VLANs exist. Access ports, trunks and the 802.1Q tag 7 min read
03Chapter 3: VLAN IDs: usable and reserved valuesThis chapter covers the 12-bit VLAN ID: which values you can assign, which are reserved, how the normal and extended ranges differ, and what happens when a switch sees a value it should not. It assumes you know what a VLAN is, what an access port and a trunk port do, and how to read basic switch con7 min read
04Chapter 4: Access ports: assigning end devices to a VLANThis chapter assumes you know how a Layer 2 switch learns MAC addresses and forwards, floods and filters frames. It also assumes you can read IPv4 addresses and subnets and use a switch command line. You should already know what a VLAN is: a separate Layer 2 broadcast domain inside one physical swit7 min read
05Chapter 5: Trunk ports: carrying many VLANs on one linkThis chapter assumes you know how a switch learns MAC addresses and forwards, floods and filters frames. It also assumes you understand access ports, which place untagged end-device traffic into one VLAN, and basic IPv4 subnetting. You also need to be comfortable with the switch command line.6 min read
06Chapter 6: Inside the 802.1Q tagThis chapter assumes you already know the Ethernet frame layout, how a switch learns MAC addresses, and how to read basic switch output. It covers the 4 bytes that 802.1Q inserts into a frame, the meaning of each field, how the tag is read from raw bytes, and the mistakes people make with it.5 min read
07Chapter 7: The native VLANThis chapter assumes you know Ethernet frames and MAC addresses, how a switch learns and forwards, basic IPv4 subnetting, and how to use a switch command line. It also assumes you have met access ports, trunk ports, and the 802.1Q tag. Here we cover what the native VLAN is, how a trunk handles untag6 min read
08Chapter 8: Limiting which VLANs a trunk carriesThis chapter covers the allowed VLAN list on an 802.1Q trunk. It explains what the list does, how to change it safely, and how to troubleshoot it. It assumes you know how access ports and trunk ports work, what the 802.1Q tag contains, and the basic Cisco IOS command line.5 min read
09Chapter 9: Trunk negotiation and why to turn it offThis chapter assumes you can already configure access and trunk ports, you know what the native VLAN and an allowed VLAN list are, and you can read basic Cisco IOS output. It covers how a switch port can decide on its own to become a trunk, why that is a risk, and how to turn it off.5 min read
10Chapter 10: Routing between VLANsThis chapter assumes you know Ethernet frames, how a switch learns MAC addresses, IPv4 subnetting, and basic router and switch command-line use. It also assumes you can already configure access and trunk ports.6 min read
11Chapter 11: Voice VLANs on access portsThis chapter assumes you know how access ports and 802.1Q tagging work, as covered earlier in this tutorial. You should also be comfortable with Cisco IOS interface configuration and with how a switch learns MAC addresses. Here you will see how a single switch port can carry two VLANs, one for a PC 6 min read
12Chapter 12: Tagging overhead and frame sizeThis chapter covers what the 802.1Q tag does to frame length, why that can break traffic that worked before, and how to find and fix the problem. It assumes you know the Ethernet frame layout, how a switch forwards frames, IPv4 addressing, and basic switch command-line use. It also assumes you have 7 min read
13Chapter 13: VLAN hopping: switch spoofing and double taggingThis chapter assumes you can configure access and trunk ports, you know what the native VLAN is, and you know that DTP (Dynamic Trunking Protocol) is Cisco's trunk negotiation protocol. You should also be comfortable reading a Cisco IOS configuration. The chapter covers two attacks that let a host r6 min read
14Chapter 14: Verifying and troubleshooting VLANs and trunksThis chapter assumes you can configure access ports, trunks, the native VLAN and allowed VLAN lists, and router-on-a-stick, as covered earlier. It also assumes you are comfortable with basic IOS show commands. Here you will build a repeatable method for checking a VLAN design and for isolating the6 min read
15Chapter 15: Q-in-Q: stacking tagsThis chapter assumes you can configure access and trunk ports, you know the 802.1Q tag layout (TPID, PCP, DEI, VID), and you know that a trunk adds 4 bytes to the frame. Q-in-Q builds on the tag format from the earlier chapters and needs no new commands beyond a few port modes.5 min read