Use it to understand why a link formed a trunk without being configured as one, or in labs where negotiation is intended.
Dynamic desirable
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.
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.
switchport mode dynamic desirablePrimary Commands
Configuration and operational commands for this Topic.
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 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.
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.
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
| Neighbour | Result with dynamic desirable |
|---|---|
access | Access (no trunk) |
dynamic auto | Trunk |
dynamic desirable | Trunk |
trunk | Trunk |
trunk + nonegotiate | Depends: the neighbour sends no DTP, so this side may stay access. Configure both sides statically |
Why it is rarely used in production
| Risk | Explanation |
|---|---|
| Unintended trunks | A device that negotiates (or spoofs DTP) can get a trunk with access to all allowed VLANs |
| Unpredictable state | The link mode depends on the neighbour, not only on the local configuration |
| Guide warning | Some devices forward DTP frames improperly, which can cause misconfigurations |
Recommended practice
- Trunks:
switchport mode trunkplusswitchport nonegotiate, and an explicit allowed-VLAN list. - Host ports:
switchport mode access(DTP is then not used to form a trunk). - Use
dynamic desirableonly 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.
DTP outcomes
| Local \ Remote | Trunk | Desirable | Auto | Access |
|---|---|---|---|---|
| Desirable | Trunk | Trunk | Trunk | Access |
| Auto | Trunk | Trunk | Access | Access |
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 \ Remote | dynamic auto | dynamic desirable | trunk | access |
|---|---|---|---|---|
| dynamic desirable | Trunk | Trunk | Trunk | Access |
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.
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 → 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%