Study guide
4.1 802.1Q Trunking, Native VLAN, and Dynamic Trunking Protocol Troubleshooting
Cisco ENCOR 350-401 CCNP Enterprise Core
Track your progress as you read
Finished sections get a check mark.
1 Introduction & Exam Overview
0.1 Cisco 350-401 ENCOR Exam Logistics, Blueprint Structure, and Certification Paths 0.2 Preparation Strategy, Lab Environment Setup, and Practical Test Pacing
2 Enterprise Campus Architecture and High Availability
1.1 Enterprise Network Design: Two-Tier, Three-Tier, Fabric, and Cloud Architectures 1.2 High Availability Architecture: Device Redundancy, FHRPs, and Stateful Switchover (SSO) 1.3 Quality of Service (QoS) Architecture, Classification, Queuing, and Configuration Interpretation
3 Cisco Software-Defined Architecture: SD-WAN and SD-Access
2.1 Cisco Catalyst SD-WAN: Control, Management, and Data Planes 2.2 Cisco SD-Access Architecture: Control Plane, Data Plane, and Fabric Node Roles 2.3 SD-Access Campus Interoperability: Integrating Traditional Networks with Fabric
4 Device and Network Virtualization Technologies
3.1 Device Virtualization: Type 1/2 Hypervisors, Virtual Machines, and Virtual Switching 3.2 Data Path Virtualization: VRF-Lite, GRE Tunneling, and IPsec VPN Fundamentals 3.3 Network Virtualization Overlays: LISP and VXLAN Encapsulation Mechanics
5 Layer 2 Infrastructure: Trunking, EtherChannel, and Spanning Tree
4.1 802.1Q Trunking, Native VLAN, and Dynamic Trunking Protocol Troubleshooting 4.2 EtherChannel Bundling: Static, LACP, and PAgP Implementation and Verification 4.3 Spanning Tree Architecture: RSTP, MST, and STP Protection Mechanisms
6 Layer 3 Routing: OSPF Multi-Area and Protocol Comparison
5.1 Enterprise Routing Principles: Distance Vector vs. Link-State, EIGRP, and OSPF 5.2 OSPFv2 and OSPFv3 Multi-Area Architecture: LSAs, Area Types, and Summarization 5.3 Policy-Based Routing (PBR) Architecture, Configuration, and Route-Maps
7 Exterior Routing: BGP Peering and Path Selection
6.1 External BGP (eBGP) Peering, States, Neighbor Adjacencies, and Timers 6.2 BGP Path Attributes and the Step-by-Step Best Path Selection Algorithm
8 IP Services and First-Hop Redundancy
7.1 Time Synchronization: Network Time Protocol (NTP) and Precision Time Protocol (PTP) 7.2 Network Address Translation: Static NAT, Dynamic NAT, and PAT/Overload 7.3 First Hop Redundancy Protocols: HSRP and VRRP Implementation and Failover
9 IP Multicast Architecture and Protocols
8.1 Multicast Addressing, IGMPv2/v3 Host Membership, and the RPF Check 8.2 Protocol Independent Multicast Sparse Mode (PIM-SM) and Rendezvous Point Discovery 8.3 Anycast RP with MSDP, Source-Specific Multicast (SSM), and Bidirectional PIM
10 Network Diagnostics, Monitoring, and Telemetry
9.1 Network Diagnostic Tools: Conditional Debugging, Traceroute, SNMPv3, and Syslog Logging 9.2 Flexible NetFlow (FNF) Architecture: Flow Records, Exporters, and Monitors 9.3 Switched Port Analyzer: Local SPAN, Remote SPAN (RSPAN), and Encapsulated RSPAN (ERSPAN)
11 Performance Monitoring and Model-Driven Assurance
10.1 IP Service Level Agreements (IP SLA) Probes, Responder, and Route Tracking 10.2 Cisco Catalyst Center: Assurance Dashboards, AI Analytics, and Machine Reasoning Workflows 10.3 Model-Driven Telemetry and Programmable Interfaces: NETCONF and RESTCONF Verification
12 Device Access Control and AAA Architecture
11.1 Device Line Protection: Console, Aux, VTY, Local Authentication, and Privilege Levels 11.2 AAA Architecture: Comparing RADIUS vs. TACACS+ and Method List Configuration
13 Infrastructure Security: ACLs, CoPP, and API Security
12.1 IPv4 and IPv6 Access Control Lists (ACLs): Standard, Extended, and Named Rules 12.2 Control Plane Policing (CoPP): Protecting the Route Processor with MQC 12.3 REST API Security: Token Authentication, TLS Transport, and Rate Limiting
14 Enterprise Network Security Design: ISE, TrustSec, and MACsec
13.1 Endpoint Security Architecture: 802.1X, Cisco ISE Posture, and Profiling 13.2 Next-Generation Firewalls (FTD) and Enterprise Threat Defense Design 13.3 Cisco TrustSec (Security Group Tags) and MACsec (802.1AE) Layer 2 Encryption
15 Network Automation Fundamentals: Python, JSON, and YANG
14.1 Python Fundamentals for Network Engineers: Data Types, Control Flow, and Libraries 14.2 JSON Data Encoding: Syntax, Formatting Rules, and Python Serialization 14.3 YANG Data Modeling: Modules, Tree Structures, and Data Representation
16 Controller REST APIs and RESTCONF Implementation
15.1 Cisco Catalyst Center Intent APIs and Authentication Workflows 15.2 Cisco Catalyst SD-WAN Manager (vManage) REST APIs and Device Interaction 15.3 RESTCONF Protocol Operations: HTTP Verbs, Datastores, and Response Codes
17 Event-Driven Automation and Infrastructure Orchestration
16.1 Cisco Embedded Event Manager (EEM) Applet Architecture and Event Detectors 16.2 Configuration Management: Comparing Ansible, Puppet, Chef, and SaltStack 16.3 Infrastructure as Code (IaC) Principles with Terraform in Enterprise Networks
4.1 802.1Q Trunking, Native VLAN, and Dynamic Trunking Protocol Troubleshooting
Key Takeaways Explain This Topic AI
IEEE 802.1Q inserts a 4-byte (32-bit) tag directly into Ethernet frame headers between the Source MAC address and EtherType fields, requiring mandatory recalculation of the Frame Check Sequence (FCS).
The 802.1Q tag header comprises the Tag Protocol Identifier (TPID 0x8100), Priority Code Point (PCP, 3 bits), Drop Eligible Indicator (DEI, 1 bit), and a 12-bit VLAN Identifier (VID) supporting VLAN IDs 1 through 4094.
Native VLAN frames traverse 802.1Q trunks untagged by default, creating vulnerability to double-tagging VLAN hopping attacks unless mitigated by designating an unused native VLAN ID or enabling global native tagging via vlan dot1q tag native .
Dynamic Trunking Protocol (DTP) automates trunk negotiation via Dynamic Auto, Dynamic Desirable, Trunk, and Access modes, while switchport nonegotiate explicitly disables DTP packet transmission on static trunks.
Common trunking failures stem from native VLAN mismatches (flagged by %CDP-4-NATIVE_VLAN_MISMATCH ), allowed VLAN list pruning omissions, and encapsulation disagreements, diagnosable via show interfaces trunk and show dtp interface .
Last updated: October 2026
802.1Q Trunking, Native VLAN, and Dynamic Trunking Protocol Troubleshooting
Modern enterprise campus networks rely on Virtual Local Area Networks (VLANs) to partition physical switching infrastructure into isolated Layer 2 broadcast domains. When traffic between switches must traverse a shared physical uplink, VLAN trunking encapsulates or tags frames to preserve VLAN identity across device boundaries. Understanding frame tagging standards, native VLAN handling, and trunk negotiation mechanisms is critical for maintaining reliable Layer 2 transport.
IEEE 802.1Q Frame Tagging Architecture
The IEEE 802.1Q standard defines an industry-standard method for multiplexing multiple VLANs over a single physical or logical link. Rather than encapsulating the entire original Ethernet frame inside an external header (as was done by legacy protocols like Cisco Inter-Switch Link [ISL]), 802.1Q inserts an internal 4-byte (32-bit) tag directly into the original Ethernet frame header. +---------------+---------------+--------------------+---------------+---------------+-----+
- | Dest MAC (6B) | Src MAC (6B) | 802.1Q Tag (4B) | EtherType (2B)| Payload (46B- | FCS |
- | | | [TPID | TCI] | (Original) | 1500B) | (4B)|
- +---------------+---------------+--------------------+---------------+---------------+-----+
- |
- +-----------------------------+-----------------------------+
- | |
- +-----------------------+-------+-----+-------------------------+
- | TPID: 0x8100 (16 bits)| PCP | DEI | VLAN ID (VID) (12 bits) |
- | | (3 b) | (1b)| Range: 0 to 4095 |
- +-----------------------+-------+-----+-------------------------+
- Tag Header Fields and Bit Allocations
The 4-byte 802.1Q tag header is inserted immediately after the Source MAC address field and before the original EtherType/Length field. It consists of two primary elements:
Tag Protocol Identifier (TPID - 16 bits): Set to the fixed hexadecimal value 0x8100 . This value indicates that the frame carries an 802.1Q tag header. Receiving devices examine this field to differentiate tagged frames from standard untagged Ethernet II frames.
Tag Control Information (TCI - 16 bits): Subdivided into three distinct operational subfields:
Priority Code Point (PCP - 3 bits): Implements IEEE 802.1p Class of Service (CoS) marking. Provides 8 discrete traffic priority levels (values 0 through 7), enabling Quality of Service (QoS) classification and prioritization directly at Layer 2.
Drop Eligible Indicator (DEI - 1 bit): Formerly designated as the Canonical Format Indicator (CFI) for Token Ring interoperability. In modern Ethernet implementations, DEI indicates whether the frame may be dropped during link congestion (0 indicates non-eligible, 1 indicates drop-eligible).
VLAN Identifier (VID - 12 bits): Specifies the VLAN to which the frame belongs. A 12-bit binary field supports 4096 total VLAN IDs (0 through 4095).
- Field Name Bit Width Binary/Hex Range Operational Function
- TPID 16 bits (2 bytes) 0x8100 Identifies frame as 802.1Q-tagged Ethernet
- PCP / CoS 3 bits 000 to 111 (0–7) Layer 2 Quality of Service prioritization
- DEI / CFI 1 bit 0 or 1 Discard eligibility indicator under congestion
- VLAN ID (VID) 12 bits 0 to 4095 Identifies the logical broadcast domain
- VLAN ID Allocation Ranges
VLAN 0: Reserved for priority-tagged frames. Frames carry valid PCP bits for QoS handling but specify no VLAN membership; switches process the payload within the port's native VLAN.
VLAN 1: Factory default VLAN for management, native trunking, and control plane protocols (CDP, VTP, PAgP, DTP). Cannot be deleted.
VLANs 2–1001: Standard-range VLANs used for user and data traffic. Stored in flash non-volatile memory ( vlan.dat ) or within the startup configuration in VTP transparent mode.
VLANs 1002–1005: Reserved standard-range IDs for legacy FDDI and Token Ring bridging. Cannot be modified or deleted.
VLANs 1006–4094: Extended-range VLANs intended for enterprise service providers and dense campus segments. Stored in running-config and saved to startup-config; supported in VTP version 3 or VTP transparent mode.
VLAN 4095: Reserved for system architecture and internal switch control use.
Frame Size Modification and FCS Recalculation
Inserting the 4-byte tag expands the maximum untagged Ethernet II frame size from 1518 bytes to 1522 bytes. Frames between 1519 and 1522 bytes are termed "baby giant" frames. Modern Ethernet switching hardware natively processes these frames without fragmentation. Because the header bytes are altered, the switch must recalculate the 4-byte Frame Check Sequence (FCS) cyclic redundancy check (CRC) prior to transmitting the frame across the trunk.
Native VLAN Mechanics and Security Hardening
In 802.1Q trunking, the native VLAN provides backward compatibility for legacy non-802.1Q devices by transmitting and receiving frames without an 802.1Q tag. By default, Cisco switches assign VLAN 1 as the native VLAN on all 802.1Q trunk ports.
When a switch receives an untagged frame on an 802.1Q trunk interface, it associates that frame with the configured native VLAN of the receiving port. Conversely, when the switch forwards traffic belonging to the native VLAN out an 802.1Q trunk, it strips the 802.1Q tag, transmitting raw Ethernet frames.
Security Vulnerability: Double-Tagging VLAN Hopping
Leaving the native VLAN in its default state (VLAN 1) creates exposure to double-tagging VLAN hopping attacks. In this attack, an attacker circumvents Layer 2 security controls to transmit unidirectional traffic into a restricted VLAN: [Attacker on Access VLAN 10]
|
| Crafts frame with:
- | Outer Tag = VLAN 10 (Native VLAN)
- | Inner Tag = VLAN 20 (Target VLAN)
- v
- [Switch A (Trunk Native VLAN 10)]
- |
- | Switch A strips outer VLAN 10 tag
- | because it matches trunk native VLAN
- v
- [Untagged Trunk Link Carrying Inner Tag]
- |
- | Frame reaches Switch B with Inner Tag = VLAN 20
- v
- [Switch B]
- |
- | Reads VLAN 20 tag and forwards to victim
- v
- [Victim Host in VLAN 20]
Crafted Frame: An attacker connected to an access port in VLAN 10 generates an Ethernet frame with two 802.1Q tags: an outer tag set to VLAN 10 (which happens to match the trunk's native VLAN) and an inner tag set to the victim VLAN (e.g., VLAN 20).
First Switch Forwarding: Switch A receives the frame, determines that the destination MAC requires transit across the trunk link, and strips the outer VLAN 10 tag because native VLAN traffic must be sent untagged across the trunk.
Second Switch Processing: Switch B receives the frame across the trunk. Because the outer tag was stripped by Switch A, the inner tag (VLAN 20) now sits immediately behind the Source MAC address. Switch B reads the 0x8100 TPID and VLAN ID 20, forwarding the packet directly into VLAN 20 without routing.
Native VLAN Hardening Best Practices
Dedicate an Unused Native VLAN: Change the native VLAN on all trunks to an unused non-default VLAN ID (e.g., VLAN 999) across the switching domain: interface GigabitEthernet0/1
switchport trunk native vlan 999
Exclude Access Ports from the Native VLAN: Never assign end-user access ports to the designated native VLAN ID.
Enforce Global Native VLAN Tagging: Force the switch to tag native VLAN frames across all trunks using the global configuration command: vlan dot1q tag native When native tagging is active, the switch inserts an 802.1Q tag on all frames traversing the trunk, including native VLAN frames, neutralizing double-tagging exploitation.
Dynamic Trunking Protocol (DTP) Operation
The Dynamic Trunking Protocol (DTP) is a Cisco-proprietary point-to-point protocol operating at Layer 2. DTP automates the negotiation of link operating modes (access vs. trunk) and encapsulation types between adjacent switch ports.
DTP Port Modes
switchport mode access : Unconditionally places the port into permanent 802.1Q access (non-trunking) mode. Generates DTP frames to negotiate the remote link partner into access mode.
switchport mode trunk : Unconditionally places the port into permanent 802.1Q trunking mode. Continues generating periodic DTP frames every 30 seconds to convert the neighbor port into a trunk.
switchport mode dynamic auto : Configures the port to passively listen for DTP negotiation frames. The interface converts to a trunk if the remote neighbor initiates trunking (Dynamic Desirable or Trunk). If both sides operate in dynamic auto, the link defaults to an access port.
switchport mode dynamic desirable : Configures the port to actively initiate trunk negotiation by transmitting DTP packets. The interface successfully converts to a trunk if the remote neighbor is set to dynamic desirable, dynamic auto, or static trunk.
switchport nonegotiate : Explicitly stops the transmission of DTP frames. Can only be applied when an interface is manually set to static access or static trunk mode. Required when connecting to non-Cisco switches, routers, or hardened end hosts to eliminate security exposure.
DTP Negotiation Outcome Matrix
- Local Port Mode Remote: Dynamic Auto Remote: Dynamic Desirable Remote: Static Trunk Remote: Static Access
- Dynamic Auto Access Trunk Trunk Access
- Dynamic Desirable Trunk Trunk Trunk Access
- Static Trunk Trunk Trunk Trunk Link Inconsistency / Mismatch
- Static Access Access Access Link Inconsistency / Mismatch Access
Note: If one side is configured with switchport nonegotiate while the remote partner is set to dynamic auto or dynamic desirable , DTP negotiation fails. The remote port remains in its default access state, causing an operational link state mismatch.
Allowed VLAN List Configuration and Pruning
By default, an 802.1Q trunk permits all standard and extended VLANs (1 through 4094) to traverse the link. In production environments, administrators restrict unnecessary broadcast propagation by configuring an explicit allowed list.
- Manual Allowed List Syntax interface GigabitEthernet0/1
- switchport mode trunk
- switchport trunk allowed vlan 10,20,30
- switchport trunk allowed vlan add 40
Each allowed vlan command edits the same list, so order matters. The two commands above leave VLANs 10, 20, 30, and 40 allowed, which matches the show interfaces trunk output later in this section. Adding switchport trunk allowed vlan remove 20 would leave 10, 30, and 40, while switchport trunk allowed vlan except 100-200 would replace the whole list with every VLAN except 100 to 200.
switchport trunk allowed vlan <list> : Replaces the existing allowed list with the specified IDs.
switchport trunk allowed vlan add <list> : Appends specified VLANs without modifying current entries.
switchport trunk allowed vlan remove <list> : Excises specified VLANs from the permitted list.
switchport trunk allowed vlan except <list> : Permits all active VLANs except the specified range.
Dynamic VTP Pruning
VLAN Trunking Protocol (VTP) pruning dynamically monitors broadcast, multicast, and unknown unicast flooding across the trunk. If a downstream switch has no active access interfaces assigned to a specific VLAN, VTP pruning dynamically suppresses that VLAN's traffic from traversing the trunk uplink, conserving link bandwidth without manual intervention.
Troubleshooting Trunking and VLAN Mismatches
Trunking faults disrupt inter-switch connectivity, cause traffic black-holing, and introduce Spanning Tree forwarding loops.
Common Failure Scenarios
Native VLAN Mismatch:
Occurs when adjacent trunk ports are configured with differing native VLAN IDs (e.g., Switch A uses VLAN 1, Switch B uses VLAN 99).
The Cisco Discovery Protocol (CDP) detects this discrepancy and generates console alerts: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch detected on GigabitEthernet0/1 (1), with Switch2 GigabitEthernet0/1 (99).
Consequences: Traffic from VLAN 1 on Switch A leaks directly into VLAN 99 on Switch B without routing. Spanning Tree places the port into a PVID-inconsistent state for the mismatched VLANs to prevent forwarding loops.
DTP Negotiation Failures:
Setting one end to static trunk with nonegotiate while leaving the remote peer set to dynamic auto results in the remote port remaining in access mode. Unicast frames tagged by the static trunk are dropped by the access port.
Encapsulation Disagreements:
Older Catalyst platforms support both ISL and 802.1Q. If trunk encapsulation is not explicitly defined with switchport trunk encapsulation dot1q prior to issuing switchport mode trunk , trunk initialization fails.
- Diagnostic Verification Commands Switch# show interfaces trunk
- Port Mode Encapsulation Status Native vlan
- Gi0/1 on 802.1q trunking 1
- Port Vlans allowed on trunk
- Gi0/1 10,20,30,40
- Port Vlans allowed and active in management domain
- Gi0/1 10,20,30
- Port Vlans in spanning tree forwarding state and not pruned
- Gi0/1 10,20,30
show interfaces trunk : Confirms operational trunk status, negotiated encapsulation, native VLAN, permitted VLANs, active VLANs, and STP forwarding states.
show dtp interface <id> : Displays administrative vs. operational DTP modes, negotiation status, and hello timer intervals.
show interfaces <id> switchport : Provides deep administrative settings including administrative mode, operational mode, encapsulation, and native VLAN tagging status.