Use it to explain why a link did or did not become a trunk, and when disabling negotiation as hardening.
DTP
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.
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?
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
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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.
Subtopics
Go one level deeper into this subject.
Dynamic desirable is a DTP mode that actively attempts to negotiate a trunk with a compatible peer.
Subtopic Dynamic autoDynamic auto is a passive DTP mode that can become a trunk when the peer actively negotiates or is otherwise compatible, but auto does not actively initiate trunking by itself.
Subtopic Disable negotiation`switchport nonegotiate` disables DTP frame transmission/negotiation on a supported switchport; trunk/access behavior must then be configured explicitly as required.
Subtopic VerificationDTP verification shows the local negotiation state and complements normal switchport/trunk verification.
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.
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.
| Mode | Behaviour |
|---|---|
access | Never a trunk, whatever the neighbour does |
dynamic auto (default) | Becomes a trunk if the neighbour is trunk or desirable |
dynamic desirable | Actively tries; becomes a trunk if the neighbour is trunk, desirable or auto |
trunk | Always a trunk |
nonegotiate (with access or trunk) | Stops sending DTP frames; the neighbour must be set to trunk manually |
Resulting combinations
| Local \ Neighbour | access | auto | desirable | trunk |
|---|---|---|---|---|
| auto | Access | Access | Trunk | Trunk |
| desirable | Access | Trunk | Trunk | Trunk |
| trunk | (misconfiguration) | Trunk | Trunk | Trunk |
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
| Risk | Detail |
|---|---|
| Switch spoofing | A device sending DTP desirable on a port left in dynamic auto gets a trunk and all VLANs |
| Unpredictable results | Depends on both ends' configuration |
| Non-Cisco neighbours | They 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.
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 A | Port B | Result |
|---|---|---|
| desirable | desirable/auto/trunk | Trunk |
| auto | auto | Access |
| auto | trunk | Trunk |
| access | any | Access |
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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
Quick lookup tables
DTP negotiation quick map
Simplified Cisco dynamic trunk expectations.
| Side A | Side B | Typical result |
|---|---|---|
| dynamic desirable | dynamic desirable | Trunk |
| dynamic desirable | dynamic auto | Trunk |
| dynamic auto | dynamic auto | No negotiated trunk |
| static trunk | compatible static trunk | Trunk without requiring dynamic negotiation |
| nonegotiate | dynamic peer relying on DTP | Negotiation unavailable; configure compatible static intent |
DTP · operational reference
Compact state and interpretation boundaries for fast lookup.
| Mode concept | Effect |
|---|---|
| Static access | Access role forced |
| Static trunk | Trunk role forced |
| Dynamic desirable | Actively proposes trunk |
| Dynamic auto | Passively accepts compatible proposal |