DTP
Cheat sheet · https://pcornel.dk/topic.php?topic=593
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 A | Side B | Typical result |
|---|---|---|
| dynamic desirable | dynamic desirable | Trunk |
| dynamic desirable | dynamic auto | Trunk |
| dynamic auto | dynamic auto | No negotiated trunk |
| static trunk | compatible static trunk | Trunk without requiring dynamic negotiation |
| nonegotiate | dynamic peer relying on DTP | Negotiation 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