Use it when a link between switches is unexpectedly not trunking, when a user port became a trunk, or when hardening port configuration.
DTP Reference
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.
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.
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
Operational reference
Fast context before you go deeper.
show interfaces GigabitEthernet1/0/1 switchportVerification & 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 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 trunkstatically. - Negotiation fails between two Cisco switches. Their VTP domain names differ.
switchport nonegotiateis rejected. The port is still in a dynamic mode; set access or trunk first.
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.
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.
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
| Mode | Behaviour |
|---|---|
switchport mode access | Always an access port. Does not form a trunk |
switchport mode trunk | Always a trunk. Still sends DTP, so a dynamic neighbour follows |
switchport mode dynamic desirable | Actively asks the neighbour to trunk |
switchport mode dynamic auto | Trunks only if the neighbour asks |
switchport nonegotiate | Added to access or trunk mode: stops sending DTP altogether |
The result for a pair of ports:
| access | dynamic auto | dynamic desirable | trunk | |
|---|---|---|---|---|
| access | Access | Access | Access | Mismatch |
| dynamic auto | Access | Access | Trunk | Trunk |
| dynamic desirable | Access | Trunk | Trunk | Trunk |
| trunk | Mismatch | Trunk | Trunk | Trunk |
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 \ Neighbour | access | dynamic auto | dynamic desirable | trunk |
|---|---|---|---|---|
| access | Access | Access | Access | Mismatch (one side trunks) |
| dynamic auto | Access | Access | Trunk | Trunk |
| dynamic desirable | Access | Trunk | Trunk | Trunk |
| trunk | Mismatch | Trunk | Trunk | Trunk |
Two dynamic auto ports never become a trunk, because neither side asks for one.
Recommended configuration (guide)
| Port role | Commands | Why |
|---|---|---|
| User or device access port | switchport mode access | No trunk can form, whatever is plugged in |
| Uplink to another Cisco switch | switchport mode trunk + switchport nonegotiate | Fixed trunk without DTP frames |
| Link to a non-Cisco device or a router | switchport mode trunk + switchport nonegotiate | The neighbour doesn't speak DTP |
| Unused port | switchport 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)
| Setting | Default or rule |
|---|---|
| Native VLAN | VLAN 1; must match on both ends, or spanning-tree loops can result |
| Allowed VLANs | All VLANs 1–4094 |
| VLAN 1 removed from the allowed list | Control traffic (CDP, PAgP, LACP, DTP, VTP) still uses VLAN 1 |
| 802.1X | Not possible on trunk or dynamic-mode ports |
| Port security | A 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.
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 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%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.