Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Dynamic desirable

Direct answer

switchport mode dynamic desirable makes the port actively ask the neighbour to form a trunk. It becomes a trunk if the neighbour is trunk, desirable or auto.

When to use this

Use it to understand why a link formed a trunk without being configured as one, or in labs where negotiation is intended.

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
Key commandswitchport mode dynamic desirable
Scope / prerequisiteUse it to understand why a link formed a trunk without being configured as one, or in labs where negotiation is intende…
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

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 Commands Verify boundary
show interfaces Gi1/0/1 switchport | include Mode
show dtp interface Gi1/0/1

Administrative Mode: dynamic desirable and Operational Mode: trunk confirm the negotiation result.

Step 2 Common mistakes Narrow the fault
  • Leaving desirable on user ports: an attacker can negotiate a trunk (VLAN hopping). Use static access/trunk and switchport nonegotiate.
Command lookup Jump straight to Cisco syntax
Key points

Desirable only forms a trunk with a neighbour that runs DTP and is not set to access or nonegotiate. In production prefer static trunk + nonegotiate.

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.
ReferenceWhat it is1 section · depth on demand

What it is

switchport mode dynamic desirable makes the port actively send DTP frames to negotiate a trunk. It becomes a trunk if the other side is trunk, desirable or auto; otherwise it stays access.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

dynamic desirable actively asks the neighbour to form a trunk

The Catalyst 9300 VLAN trunk guide describes switchport mode dynamic desirable as actively trying to form a trunk with a neighbour set to trunk, desirable or auto.

C9300(config)# interface Gi1/0/1
C9300(config-if)# switchport mode dynamic desirable
C9300# show interfaces Gi1/0/1 switchport | include Mode|Negotiation
Administrative Mode: dynamic desirable
Operational Mode: trunk
Negotiation of Trunking: On

Result by neighbour mode

NeighbourResult with dynamic desirable
accessAccess (no trunk)
dynamic autoTrunk
dynamic desirableTrunk
trunkTrunk
trunk + nonegotiateDepends: the neighbour sends no DTP, so this side may stay access. Configure both sides statically

Why it is rarely used in production

RiskExplanation
Unintended trunksA device that negotiates (or spoofs DTP) can get a trunk with access to all allowed VLANs
Unpredictable stateThe link mode depends on the neighbour, not only on the local configuration
Guide warningSome devices forward DTP frames improperly, which can cause misconfigurations

Recommended practice

  • Trunks: switchport mode trunk plus switchport nonegotiate, and an explicit allowed-VLAN list.
  • Host ports: switchport mode access (DTP is then not used to form a trunk).
  • Use dynamic desirable only for lab or temporary links, and remove it afterwards.

Audit with show interfaces switchport | include Name|Administrative Mode to find ports still in a dynamic mode.

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.

DTP outcomes

Local \ RemoteTrunkDesirableAutoAccess
DesirableTrunkTrunkTrunkAccess
AutoTrunkTrunkAccessAccess

Quick reference

DTP (Dynamic Trunking Protocol) is Cisco's protocol for two switch ports to agree automatically whether a link should be a trunk. In dynamic desirable mode a port actively proposes trunking to its neighbour. That convenience is also the risk: any device that answers DTP, including an attacker's laptop, can turn the port into a trunk and gain access to every VLAN.

switchport mode dynamic desirable actively sends DTP frames asking the neighbour to trunk.

Local \ Remotedynamic autodynamic desirabletrunkaccess
dynamic desirableTrunkTrunkTrunkAccess
interface Gi1/0/48
 switchport mode dynamic desirable
show dtp interface Gi1/0/48
show interfaces Gi1/0/48 switchport | include Administrative Mode|Operational Mode

Useful only in labs; in production, configure trunks explicitly so a rogue device cannot negotiate a trunk.

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 → Dynamic desirable. 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?