Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

DTP

Direct answer

DTP (Dynamic Trunking Protocol) is a Cisco protocol that lets two switch ports negotiate whether the link becomes a trunk. Modes: dynamic desirable asks, dynamic auto waits to be asked, trunk is a trunk and still sends DTP, nonegotiate turns DTP off.

When to use this

Use it to explain why a link did or did not become a trunk, and when disabling negotiation as hardening.

First 30 seconds

1. show interfaces <if> switchport on both ends — Administrative Mode and Operational Mode.

2. Both dynamic auto → stays access; set one side to trunk or desirable.

3. One side static access → never a trunk.

4. Neighbour is not a Cisco switch (router, firewall, server) → DTP does not apply; configure static trunk + nonegotiate.

5. show dtp interface <if> — DTP packets exchanged?

Operational verification

administrative mode on end A → administrative mode on end B → DTP frames exchanged → mode combination decides the result → operational mode trunk or access

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Scope / prerequisiteUse it to explain why a link did or did not become a trunk, and when disabling negotiation as hardening.
What next?2 suggested next steps
Child topics (this level)4
Evidence0
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 First 30 seconds Verify boundary

Immediate answer: Read administrative/operational trunking mode and negotiation state on both ends before forcing a trunk.

Verification chain: administrative mode → DTP negotiation → operational mode → allowed/native VLAN → STP → traffic

Stop condition: DTP negotiation success does not show the required VLAN is allowed, forwarding or mapped consistently.

Step 2 Verification and output interpretation Verify boundary

Use switchport detail to compare administrative mode, operational mode and negotiation state. The key question is whether the interface is actually operating as access or trunk and whether that state matches design intent. If a dynamic port unexpectedly forms or fails to form a trunk, inspect the peer's administrative behavior and whether negotiation frames are expected. show interfaces trunk confirms the resulting trunk but does not tell you that DTP was the reason it formed. For non-Cisco peers, successful static 802.1Q trunking is valid evidence even though DTP is absent.

Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Result table: desirable + desirable/auto/trunk = trunk; auto + auto = access; access on either side = access. Many switches default to dynamic auto. Best practice is to set every port to access or trunk and add nonegotiate on trunks, so an attacker cannot negotiate a trunk.

Key checks
  • show dtp interface <if> — DTP state, TOS/TAS/TNS, packets sent and received.
  • show interfaces <if> switchport — Administrative Mode, Operational Mode, Negotiation of Trunking.
  • show interfaces trunk — ports that ended up trunking.
ReferenceImportant terms & boundaries5 sections · depth on demand

Negotiation expectations

A simplified Cisco expectation: desirable↔desirable = trunk; desirable↔auto = trunk; auto↔auto = no negotiated trunk. Static trunking can form without DTP, and nonegotiate suppresses DTP so both sides must have compatible explicit modes.

In depth

DTP negotiates whether a link becomes a trunk

Dynamic Trunking Protocol is Cisco's protocol for automatic trunk negotiation. The Catalyst 9300 trunk guide documents the modes and gives dynamic auto as the default on all Ethernet interfaces.

ModeBehaviour
accessNever a trunk, whatever the neighbour does
dynamic auto (default)Becomes a trunk if the neighbour is trunk or desirable
dynamic desirableActively tries; becomes a trunk if the neighbour is trunk, desirable or auto
trunkAlways a trunk
nonegotiate (with access or trunk)Stops sending DTP frames; the neighbour must be set to trunk manually

Resulting combinations

Local \ Neighbouraccessautodesirabletrunk
autoAccessAccessTrunkTrunk
desirableAccessTrunkTrunkTrunk
trunk(misconfiguration)TrunkTrunkTrunk

Two dynamic auto ports never form a trunk.

C9300# show dtp interface GigabitEthernet1/0/24
DTP information for GigabitEthernet1/0/24:
  TOS/TAS/TNS:                              ACCESS/AUTO/ACCESS
  TOT/TAT/TNT:                              NATIVE/NEGOTIATE/NATIVE
C9300# show interfaces GigabitEthernet1/0/24 switchport | include Administrative Mode|Operational Mode|Negotiation
Administrative Mode: dynamic auto
Operational Mode: static access
Negotiation of Trunking: On

Why turn DTP off

RiskDetail
Switch spoofingA device sending DTP desirable on a port left in dynamic auto gets a trunk and all VLANs
Unpredictable resultsDepends on both ends' configuration
Non-Cisco neighboursThey ignore DTP; the Catalyst 9000 guide recommends nonegotiate towards them

Recommendation

Configure every port explicitly: switchport mode access on host ports, and switchport mode trunk with switchport nonegotiate on trunks. The guide also notes DTP isn't supported on tunnel ports.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

DTP (Dynamic Trunking Protocol) is a Cisco protocol that lets two ports negotiate whether to form a trunk. Modes are dynamic desirable (actively asks), dynamic auto (waits) and trunk/access (fixed, still sending DTP unless nonegotiate).

Port APort BResult
desirabledesirable/auto/trunkTrunk
autoautoAccess
autotrunkTrunk
accessanyAccess

DTP enables a VLAN-hopping attack (switch spoofing), so best practice is to disable it: set access ports to switchport mode access and trunks to mode trunk with nonegotiate.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

State model and protocol mechanics

Dynamic Trunking Protocol is a Cisco Layer-2 control protocol used by compatible switchports to advertise and negotiate trunking intent. Administrative modes such as dynamic desirable or dynamic auto influence whether two connected ports agree to form a trunk. A statically configured trunk does not need DTP to decide its role, and a statically configured access port should not unexpectedly become a trunk. Operational mode is therefore the result of local administrative mode, remote behavior and platform defaults. DTP frames and the final trunk state are separate evidence: negotiation may be disabled while the link remains an intentional trunk. Because dynamic negotiation can expand Layer-2 scope if left uncontrolled, many production designs prefer explicit switchport modes.

Limits and common misconceptions

DTP is not the same as 802.1Q and is not required for tagged Ethernet trunking. A trunk can be perfectly healthy with DTP disabled. Conversely, successful DTP negotiation does not show allowed VLANs, native VLAN consistency or STP forwarding are correct. Dynamic auto on both ends may intentionally fail to form a trunk because neither side actively proposes it. Treat administrative mode, negotiation, operational trunk mode and VLAN forwarding as separate layers. Security policy should also assume an edge port left in a dynamic mode can have a larger failure or attack surface than one whose access role is explicitly fixed.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Use explicit access or trunk mode for links whose purpose is known, especially edge ports and infrastructure trunks. Where a static trunk is used, disable unnecessary negotiation if the platform and peer design permit it. Dynamic modes should be used only where their behavior is understood and desired, not as a shortcut for uncertain topology. Document any non-Cisco peer that does not participate in DTP and configure trunking statically. Keep trunk allowed VLAN and native VLAN settings separate from DTP: negotiation can establish trunk mode but does not decide the entire VLAN forwarding policy.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Switching → 802.1Q Trunking → DTP. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
dynamic trunking protocol
Embedded reference data

Quick lookup tables

DTP negotiation quick map

Simplified Cisco dynamic trunk expectations.

Side ASide BTypical result
dynamic desirabledynamic desirableTrunk
dynamic desirabledynamic autoTrunk
dynamic autodynamic autoNo negotiated trunk
static trunkcompatible static trunkTrunk without requiring dynamic negotiation
nonegotiatedynamic peer relying on DTPNegotiation unavailable; configure compatible static intent

DTP · operational reference

Compact state and interpretation boundaries for fast lookup.

Mode conceptEffect
Static accessAccess role forced
Static trunkTrunk role forced
Dynamic desirableActively proposes trunk
Dynamic autoPassively accepts compatible proposal
Confirmation

Confirm action

Continue?