Pcornel
Networking · Switching › 802.1Q Trunking

DTP

Cheat sheet · https://pcornel.dk/topic.php?topic=593

Back to the Topic

Answer

DTP (Dynamic Trunking Protocol) is a Cisco protocol that lets two switch ports negotiate whether the link becomes a trunk. Modes: dynamic desirable asks, dynamic auto waits to be asked, trunk is a trunk and still sends DTP, nonegotiate turns DTP off.

Remember

Result table: desirable + desirable/auto/trunk = trunk; auto + auto = access; access on either side = access. Many switches default to dynamic auto. Best practice is to set every port to access or trunk and add nonegotiate on trunks, so an attacker cannot negotiate a trunk.

First 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.

Commands

show interfaces trunk

Verify in this order

administrative mode on end A → administrative mode on end B → DTP frames exchanged → mode combination decides the result → operational mode trunk or access

Where it usually breaks

physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path

DTP negotiation quick map

Side ASide BTypical result
dynamic desirabledynamic desirableTrunk
dynamic desirabledynamic autoTrunk
dynamic autodynamic autoNo negotiated trunk
static trunkcompatible static trunkTrunk without requiring dynamic negotiation
nonegotiatedynamic peer relying on DTPNegotiation unavailable; configure compatible static intent

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=593

Confirmation

Confirm action

Continue?