Week 5 · Lesson 14

Trunking, 802.1Q, and Native VLAN

An access port can carry one VLAN, but a VLAN must be able to span many switches. The link that does this is a trunk, and the language it speaks is 802.1Q: a four-byte tag slipped into every frame that tells each switch which VLAN the frame belongs to. This lesson is where “tagged”, “native”, and “allowed VLAN” stop being buzzwords and become the commands you can type.

CCNA 200-301 Domain 2.0 Network Access Verified 2026-10-11
Learning objectives
Part 1

The problem a trunk solves

VLAN 10 exists on switch S1 and on switch S2. To carry VLAN 10 traffic between them, the two switches need a link — but a single copper cable is one physical path. If both VLANs 10 and 20 must cross the same cable, how can a frame for VLAN 10 be told apart from a frame for VLAN 20 at the far end?

The answer is tagging. The sending switch inserts a small identifier into each frame saying which VLAN it belongs to; the receiving switch reads it, strips it (on access ports) or keeps it (on trunks), and switches the frame into the right VLAN. A trunk is the port that performs this: one physical link, many logical VLANs, each frame labelled. This is the whole job of IEEE 802.1Q, the industry-standard trunking protocol.

Definition — trunk A trunk is a point-to-point link between switches (or between a switch and a router or Layer 3 switch) that carries frames belonging to multiple VLANs, using the 802.1Q tag to identify each VLAN. An access port, by contrast, carries frames of exactly one VLAN and tags nothing.
In this lesson · select a part to jump

Key ideas & exam traps · select one

Part 2

The 802.1Q tag, byte by byte

802.1Q inserts a 4-byte tag between the source MAC address and the EtherType/Length field (sometimes called the (type/length) field) of the ordinary Ethernet frame. The tag has two halves:

So the four bytes unpack as: 2 bytes 0x8100 + 3 bits priority + 1 bit DEI + 12 bits VLAN ID. The 12-bit VID is the same field that limits VLANs to 4094 usable numbers from Lesson 12.

Untagged Ethernet frame — 1518 bytes max Dst MAC Src MAC Type/Len Payload FCS With 802.1Q tag — 1522 bytes max Dst MAC Src MAC TPID 0x8100 PCP + DEI + VLAN ID Type/Len Payload FCS ← 4-byte 802.1Q tag inserted here →
802.1Q slides four bytes between the source MAC and the EtherType. Two bytes identify the tag (0x8100); two bytes carry priority, the drop-eligible bit, and the 12-bit VLAN ID.
Part 3

Frame sizes: 1518 and 1522

A standard Ethernet frame is at most 1518 bytes (add the 8-byte preamble and SFD and you get 1526 on the wire). Tagging adds 4 bytes, so the maximum becomes 1522 bytes for a tagged frame. This number has to be exact for the exam:

Exam tip Memorise the pair: maximum untagged Ethernet frame = 1518 bytes, maximum 802.1Q tagged frame = 1522 bytes (4-byte tag). The minimum never changes: both are 64 bytes. These are the same numbers the switching-mode lesson uses for runt and jumbo reasoning, so treat them as reusable ammunition.

Every receiving interface on the path must be able to accept a 1522-byte frame if trunks are in use. This is why a frame that is jumbo-sized on one link can be silently dropped at the next switch: maximum transmission unit (MTU) settings and interface buffers must accommodate the tag.

Part 4

The native VLAN

The native VLAN is the one VLAN you do not tag on a trunk. It defaults to VLAN 1. Frames belonging to the native VLAN travel across the trunk as ordinary, untagged Ethernet frames — which keeps them readable by devices that do not understand tagging and gives you a management path even if trunking fails.

Because both ends of a trunk must agree on which VLAN is native, a mismatch is a classic failure mode. Two switches that disagree on the native VLAN may accidentally bridge VLANs: untagged native frames from S1 (VLAN 10) arrive on S2, which interprets them as its own native VLAN (VLAN 20), and the two VLANs leak into each other at Layer 2. The leak may not show up in DHCP or ARP right away, but broadcast traffic and unexpected reachability are the symptoms, and show interfaces trunk highlights the mismatch.

Watch out Native = untagged. The exam loves this inversion. On a trunk, the native VLAN is the only VLAN whose frames are not tagged; every other VLAN in the allowed list is tagged. A question that says “the native VLAN carries 802.1Q tags” is wrong on purpose.
Part 5

Configuring a trunk

The minimal trunk is two commands on each switch, plus a native-VLAN tweak if you want to move away from VLAN 1:

S1(config)# interface gigabitethernet 0/24
S1(config-if)# switchport mode trunk
S1(config-if)# switchport trunk native vlan 99   ! optional, but good practice
S1(config-if)# end

S2(config)# interface gigabitethernet 0/24
S2(config-if)# switchport mode trunk
S2(config-if)# switchport trunk native vlan 99
S2(config-if)# end

switchport mode trunk forces the port to trunk unconditionally. There are softer options (dynamic desirable, dynamic auto) that use DTP (Dynamic Trunking Protocol) to negotiate trunking, and an exam answer may ask which one forms a trunk: desirable forms a trunk with desirable or auto, while auto-only-to-auto stays an access link. The safest, most exam-safe configuration is the static switchport mode trunk, which leaves nothing to negotiation.

Part 6

Filtering VLANs with allowed lists

By default a trunk carries all VLANs. Restricting it is a security measure: a trunk that carries only the VLANs you actually need cannot be used to smuggle traffic from unexpected VLANs across the switch fabric. The command is:

S1(config-if)# switchport trunk allowed vlan 10,20,99

Now VLAN 30’s frames will not cross this trunk even if VLAN 30 exists on S1. Two exam details: the list is a comma-separated set of IDs (ranges allowed, e.g. 10-20), and resetting to the default uses no switchport trunk allowed vlan or the explicit switchport trunk allowed vlan all. Also note the allowed list and the native VLAN are separate concepts — the native VLAN should usually be in the allowed list too, or untagged traffic may be dropped.

Part 7

Verification and the mismatch trap

S1# show interfaces trunk
Port        Mode         Encapsulation  Status        Native vlan
Gi0/24      on           802.1q         trunking      99

Port        Vlans allowed on trunk
Gi0/24      10,20,99

Port        Vlans allowed and active in management domain
Gi0/24      10,20

Read the output top to bottom: the port is in trunk mode with 802.1Q encapsulation, the native VLAN is 99, and only VLANs 10, 20 and 99 may cross it (VLAN 99 appears in the allowed list even though it is native). The third block lists only VLANs that exist on the switch, which is why 99 drops out — remember that VLAN 99 must be created for the native choice to be active.

The native VLAN mismatch shows up here too: if S1 says native 99 and S2 says native VLAN 1, the trunk sometimes still comes up (because DTP/management traffic rides native VLAN 1) while the two switches silently disagree about every untagged frame. The symptoms are bizarre connectivity where management pings work but data VLANs cross-pollinate — a real troubleshooting scenario on the exam.

Part 8

ISL: the legacy alternative

Before 802.1Q became the standard, Cisco offered ISL (Inter-Switch Link), an Ethernet-proprietary trunking method. ISL fully encapsulated the frame with a 26-byte header and a 4-byte trailer (30 extra bytes), tagged every VLAN including the native one, and worked only on Cisco equipment. It survives on the syllabus as a historical contrast: 802.1Q is the open IEEE standard, ISL is the legacy Cisco-proprietary protocol. Modern Cisco switches negotiate 802.1Q only, so if a question asks for the industry-standard trunking protocol, the answer is 802.1Q.

Characteristic802.1QISL (legacy)
StandardIEEE open standardCisco proprietary
Overhead4-byte tag inside the frame30 bytes (26 header + 4 trailer) surrounding the frame
Native VLANTimeless: left untaggedNone — all VLANs tagged
Used todayYes — the industry standardNo — obsolete on modern platforms
Reference table · select a row

Key terms

The vocabulary you need

Every term below appears in the lesson text above. Select one to read its definition, then use the quiz at the end to check what stuck.

Key terms · select a term

Part 9 · Your turn

Review

Check what you have learned with these review questions.

Review · 5 questions

Sources

Sources & references

  1. Cisco. CCNA (200-301) Exam Topics. cisco.com.
  2. IETF. Request for Comments (RFCs). rfc-editor.org.
  3. IANA. Internet Assigned Numbers Authority registries. iana.org.

Target exams: CCNA 200-301 v1.1 · CyberOps Associate 200-201. Last content verification: 2026-10-11.