Explain it simpler
A trunk is a single cable between two switches that carries traffic for many VLANs at once. To keep them apart, each frame gets a small label, called a tag, saying which VLAN it belongs to; the switch at the other end reads the label and removes it. One VLAN on each trunk, called the native VLAN, travels without a label, so both ends must agree which one that is. You can also choose which VLANs a trunk is allowed to carry, like a guest list. Finally, Cisco switches have a helper protocol called DTP that can automatically decide whether a link becomes a trunk, but it is safer to set each port by hand so nothing surprising happens.
It is 4:45 p.m. on a Friday at Redwood Logistics, and Jamal from the warehouse calls: every handheld scanner just dropped off the network, along with the shipping office PCs. Ten minutes earlier, a junior engineer made what he called a tiny change, adding the new camera VLAN to the uplink between the warehouse switch and the core. One line, typed carefully, no errors on screen. Now VLANs that worked all week are dead and the trucks are waiting. What did that one line actually do to the link that carries every VLAN between the two switches, and how would you spot it in seconds?
A trunk is a switch link that carries traffic for many VLANs (virtual LANs) over one physical connection. Without trunks you would need a separate cable between switches for every VLAN, which quickly becomes impossible. The IEEE 802.1Q standard makes trunking work by inserting a 4-byte tag into each Ethernet frame between the source MAC (media access control) address and the EtherType field. The tag includes a 12-bit VLAN ID, giving usable IDs up to 4094, and a 3-bit priority field used for CoS (class of service). The receiving switch reads the tag, removes it and forwards the frame in the right VLAN, so end devices on access ports never see tags at all.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.