Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Verification · DTP

Direct answer

Verifying DTP means reading each port's administrative mode, operational mode and negotiation state, and confirming the result is what the design wants.

When to use this

Use it after changes to trunk ports, or during a hardening audit.

First 30 seconds

1. show interfaces trunk — every port that is trunking. Any unexpected?

2. show interfaces <if> switchport — Administrative vs Operational Mode.

3. show interfaces switchport | include Name|Negotiation — ports with negotiation still on.

4. show dtp interface <if> — DTP packets sent and received.

5. Fix: static mode and nonegotiate where intended.

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
Key commandshow interfaces trunk
Scope / prerequisiteUse it after changes to trunk ports, or during a hardening audit.
Show · 2Reference · 1
What next?3 suggested next steps
Catalog command links3
Evidence0
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

How to read the output

show interfaces trunk

Look first: trunk status, native VLAN, allowed/active/forwarding VLAN lists

Healthy: Expected trunk is up and VLAN is allowed, active and forwarding.

Warning: VLAN missing from any stage, native mismatch or non-trunk interface.

Does not prove: VLAN allowed on trunk does not prove endpoint MAC/L3 reachability.

show interfaces switchport

Look first: line/protocol state, errors/discards, rate, duplex/speed, last input/output

Healthy: State and counters align with expected traffic and physical conditions.

Warning: CRC/input errors, drops, resets, queue drops or unexpected negotiation.

Does not prove: An interface counter is a symptom until correlated with path/time/workload.

Operational workflow

Verification & Troubleshooting

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

3 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 Known-good, broken and when it is fixed Verify boundary

Known-good means local and peer DTP/static settings produce the intended operational mode and the target VLANs subsequently forward. Broken evidence is incompatible negotiation modes, unexpected access fallback or unintended dynamic trunking. The limit of what it shows: a successful DTP negotiation shows only port-mode outcome, but it does not show allowed VLAN, native VLAN, STP or endpoint traffic. Verify final trunk state and original workload.

Step 2 Native failure isolation and next-check logic Narrow the fault

Inspect show dtp interface and show interfaces ... switchport on both ends. If the expected trunk is not formed, compare administrative modes, negotiation enablement and peer behavior before forcing trunk. If trunk forms but a VLAN fails, move to allowed/native VLAN and STP rather than continuing to adjust DTP. If policy requires static trunks, verify nonegotiate/mode consistency and document the peer dependency. Keep the same port-channel/member context when EtherChannel is involved.

Step 3 Common mistakes Narrow the fault
  • Reading only the administrative mode instead of the operational mode.
  • Forgetting that DTP is Cisco-only.
Command lookup Jump straight to Cisco syntax
Key points

Administrative Mode is what you configured; Operational Mode is what actually happened. Look for unexpected trunks (ports in dynamic mode towards users) and for links that should trunk but run as access.

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.
ReferenceHow it works1 section · depth on demand

How it works

DTP verification distinguishes administrative switchport intent, negotiation state and final operational trunk state. DTP can negotiate desirable/auto combinations, while nonegotiate and static trunking intentionally remove negotiation. The peer state matters: a local port can be configured to negotiate yet remain access if the peer does not offer trunking. DTP state does not determine VLAN forwarding by itself; native/allowed VLAN and STP are later dependencies.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Verifying DTP and trunk state on both ends

Two commands from the Catalyst 9300 trunk guide show everything needed. show interfaces <id> switchport shows the administrative mode, operational mode, trunking encapsulation, allowed VLANs and native VLAN. show interfaces <id> trunk shows the trunk status and VLAN lists.

C9300-A# show interfaces Te1/1/1 switchport
Name: Te1/1/1
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 99 (NATIVE)
Trunking VLANs Enabled: 10,20,30,99
C9300-A# show interfaces trunk
C9300-A# show dtp interface Te1/1/1

Reading the key fields

FieldMeaning
Administrative ModeWhat is configured (access, trunk, dynamic auto, dynamic desirable)
Operational ModeWhat the port actually does now
Negotiation of TrunkingOn = DTP active; Off = nonegotiate
Trunking Native Mode VLANUntagged VLAN on this trunk
Trunking VLANs EnabledThe allowed list

A verification routine after any trunk change

StepCommand
Mode and DTP state on both switchesshow interfaces <id> switchport
Trunk listed, same native VLAN both endsshow interfaces trunk
VLANs active and forwarding"allowed and active" and "forwarding state and not pruned" lines
No mismatch messagesshow logging | include NATIVE_VLAN|DTP
Neighbour seen on the expected portshow cdp neighbors <id> detail or LLDP

Auditing for DTP across a switch

C9300# show interfaces switchport | include ^Name|Administrative Mode|Negotiation

Ports showing Negotiation of Trunking: On with an administrative mode of dynamic auto or dynamic desirable are candidates for hardening (switchport mode access or trunk + nonegotiate).

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

Verifying DTP means checking both what a port is configured to do and what it actually negotiated. A port can be configured as dynamic and end up as access or trunk depending on its neighbour, so the operational mode is the only reliable answer.

show interfaces Gi1/0/24 switchport
Name: Gi1/0/24
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access
Negotiation of Trunking: On

Documented example, not captured output. Read it as: the port is willing to trunk if asked (dynamic auto), but nobody asked, so it runs as access, and DTP is still active. The hardened target state is Administrative Mode: trunk (or static access) with Negotiation of Trunking: Off.

show interfaces trunk
show dtp interface Gi1/0/24
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 Switching → 802.1Q Trunking → DTP → Verification. 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%
Confirmation

Confirm action

Continue?