Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

DTP Reference

Direct answer

DTP is the Cisco protocol by which two switches negotiate whether a link becomes a trunk. Each port has a mode: access, trunk, dynamic auto or dynamic desirable.

When to use this

Use it when a link between switches is unexpectedly not trunking, when a user port became a trunk, or when hardening port configuration.

First 30 seconds

1. show interfaces <interface> switchport — compare Administrative Mode with Operational Mode.

2. Both ends dynamic auto → no trunk; set switchport mode trunk.

3. A user port operating as trunk → switchport mode access and switchport nonegotiate.

4. One end access, the other trunk → fix the mismatch.

5. Non-Cisco neighbour → static trunk, nonegotiate.

Operational verification

mode set explicitly on both ends → the two modes agree (access/access or trunk/trunk) → negotiation off → operational mode equals the intended mode

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
Key commandshow interfaces GigabitEthernet1/0/1 switchport
Scope / prerequisiteUse it when a link between switches is unexpectedly not trunking, when a user port became a trunk, or when hardening po…
What next?3 suggested next steps
Evidence1
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 Operational verification Verify boundary
show interfaces GigabitEthernet1/0/1 switchport
show interfaces trunk
show dtp interface GigabitEthernet1/0/1

The switchport view gives three lines to read together: "Administrative Mode" (what is configured), "Operational Mode" (what the port actually is now) and "Negotiation of Trunking" (On or Off). show interfaces trunk lists the ports currently trunking, with mode and status. show dtp interface shows the DTP state and counters of frames sent and received.

Known-good: the operational mode equals the intended one on both ends, and negotiation is off wherever the mode is set statically.

Step 2 Typical faults & boundaries Narrow the fault
  • A link between two switches is not trunking. Both ends are dynamic auto; set them to trunk.
  • A user port became a trunk. It was left in a dynamic mode and the attached device negotiated; set it to access with nonegotiate.
  • Trunk on one end, access on the other. Fixed modes that disagree; only the native VLAN, at best, passes.
  • No trunk towards a non-Cisco device. It does not speak DTP; configure switchport mode trunk statically.
  • Negotiation fails between two Cisco switches. Their VTP domain names differ.
  • switchport nonegotiate is rejected. The port is still in a dynamic mode; set access or trunk first.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

Two ports in dynamic auto never form a trunk. Set every port's mode explicitly and add switchport nonegotiate: access on user ports, trunk between switches. DTP is Cisco-only — towards other vendors, configure statically.

Key checks
  • show interfaces <interface> switchport — Administrative Mode, Operational Mode and Negotiation of Trunking.
  • show interfaces trunk — ports currently trunking.
  • show dtp interface <interface> — DTP state and counters.
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

Dynamic Trunking Protocol (DTP) is a Cisco protocol by which two switches negotiate whether the link between them becomes a trunk. Each port has a mode that says whether it insists on trunking, asks for it, merely agrees to it, or refuses.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

On many Catalyst switches the default port mode is a dynamic one, so a port can become a trunk without anyone having configured it. That is convenient between switches and a risk on ports facing users: a device that speaks DTP can turn its port into a trunk and reach every VLAN. The common practice is to set every port's mode explicitly and switch DTP off.

ReferenceHow it works1 section · depth on demand

How it works

ModeBehaviour
switchport mode accessAlways an access port. Does not form a trunk
switchport mode trunkAlways a trunk. Still sends DTP, so a dynamic neighbour follows
switchport mode dynamic desirableActively asks the neighbour to trunk
switchport mode dynamic autoTrunks only if the neighbour asks
switchport nonegotiateAdded to access or trunk mode: stops sending DTP altogether

The result for a pair of ports:

accessdynamic autodynamic desirabletrunk
accessAccessAccessAccessMismatch
dynamic autoAccessAccessTrunkTrunk
dynamic desirableAccessTrunkTrunkTrunk
trunkMismatchTrunkTrunkTrunk

Two ports in dynamic auto wait for each other and stay access ports. One end fixed as access and the other fixed as trunk is a misconfiguration that DTP does not resolve.

DTP also only negotiates between switches in the same VTP domain, or where one has none. And it is Cisco-only: towards another vendor's switch, a server or a firewall, configure the mode statically and use nonegotiate.

Recommended on every port:

! user port
switchport mode access
switchport nonegotiate

! link between switches
switchport mode trunk
switchport nonegotiate
ReferenceImportant terms & boundaries1 section · depth on demand

In depth

DTP trunking modes and safe defaults

DTP is Cisco's protocol for negotiating whether a link between two switches becomes a trunk. Cisco's Catalyst 9200 VLAN guide describes how it works:

  • Default mode: Layer 2 interfaces start in dynamic auto.
  • dynamic auto: forms a trunk only when the neighbour is set to trunk or desirable.
  • dynamic desirable: actively tries to form a trunk with a neighbour set to trunk, desirable or auto.
  • trunk: forces trunking even if the neighbour isn't trunking.
  • access: forces non-trunking, whatever the neighbour says.
  • nonegotiate: stops the port from sending DTP frames. It works only together with access or trunk mode.

The guide also notes these conditions:

  • Negotiation requires both interfaces to be in the same VTP domain.
  • DTP isn't supported on tunnel ports.
  • Some devices forward DTP frames incorrectly, which can cause misconfigurations.

Resulting link state (from the mode definitions)

Local \ Neighbouraccessdynamic autodynamic desirabletrunk
accessAccessAccessAccessMismatch (one side trunks)
dynamic autoAccessAccessTrunkTrunk
dynamic desirableAccessTrunkTrunkTrunk
trunkMismatchTrunkTrunkTrunk

Two dynamic auto ports never become a trunk, because neither side asks for one.

Recommended configuration (guide)

Port roleCommandsWhy
User or device access portswitchport mode accessNo trunk can form, whatever is plugged in
Uplink to another Cisco switchswitchport mode trunk + switchport nonegotiateFixed trunk without DTP frames
Link to a non-Cisco device or a routerswitchport mode trunk + switchport nonegotiateThe neighbour doesn't speak DTP
Unused portswitchport mode access, a parking VLAN, shutdown—

Leaving user ports in a dynamic mode means a device that sends DTP could negotiate a trunk and reach every allowed VLAN. Setting the mode explicitly on every port removes that possibility.

Related trunk defaults (guide)

SettingDefault or rule
Native VLANVLAN 1; must match on both ends, or spanning-tree loops can result
Allowed VLANsAll VLANs 1–4094
VLAN 1 removed from the allowed listControl traffic (CDP, PAgP, LACP, DTP, VTP) still uses VLAN 1
802.1XNot possible on trunk or dynamic-mode ports
Port securityA trunk port can't be a secure port
SW1# show interfaces GigabitEthernet1/0/14 switchport | include Administrative Mode|Operational Mode|Negotiation
Administrative Mode: dynamic auto
Operational Mode: static access
Negotiation of Trunking: On
SW1(config)# interface GigabitEthernet1/0/14
SW1(config-if)# switchport mode access
SW1(config-if)# switchport nonegotiate
SW1(config)# interface TenGigabitEthernet1/1/1
SW1(config-if)# switchport mode trunk
SW1(config-if)# switchport nonegotiate
SW1# show interfaces trunk
Port        Mode         Encapsulation  Status        Native vlan
Te1/1/1     on           802.1q         trunking      1
SW1# show interfaces status | include trunk

Reading the output

Negotiation of Trunking: On on an access port means the port still exchanges DTP. Mode on in show interfaces trunk means a static trunk, while desirable or auto there means the trunk was negotiated. On a properly hardened switch, negotiated trunks shouldn't appear.

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.
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 Network & Protocols → DTP Reference. 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
dtpdynamic desirabledynamic autononegotiate
Confirmation

Confirm action

Continue?