802.1Q trunking
A trunk port carries traffic for many VLANs over a single cable by tagging each frame with a 4-byte 802.1Q header. This chapter explains the tag format, the native VLAN concept, and the configuration on both sides of a trunk.
A trunk port carries traffic for many VLANs over a single cable by tagging each frame with a 4-byte 802.1Q header. This chapter explains the tag format, the native VLAN concept, and the configuration on both sides of a trunk.
When a frame leaves a trunk port it gets a 4-byte tag inserted between the source MAC and the EtherType. The tag carries the VLAN ID (12 bits, allowing 1–4094) plus a 3-bit Class of Service field (PCP) and a Drop Eligible Indicator (DEI) bit.
When the frame reaches the next switch, the tag is read, the frame is delivered to that VLAN's broadcast domain, and the tag is stripped before the frame leaves any access port.
Switch(config)# interface Gi0/1
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk allowed vlan 10,20,30,99
Switch(config-if)# switchport trunk native vlan 99
Switch(config-if)# end
Switch# show interfaces trunk1 more section in this chapter, plus a 3-question quiz.
You can see the title, summary, learning objectives and the opening sections. The rest of this chapter, like all of modules 2–8, comes with the Course & Lab Pass and All-Access Max. A free account opens Module 1: Network Foundations end-to-end and saves your labs — start there, no card required.
NetForge-AI is an independent educational platform and is not affiliated with, endorsed by, or sponsored by any networking vendor or certification body. All product names, protocols, and standards referenced are the property of their respective owners and are used for descriptive, educational purposes only.
Free account · no card required · compare plans any time