Quiz Entry - updated: 2026.07.05
How do you verify the DTP (Dynamic Trunking Protocol) mode on a switch interface?
Use the show dtp interface <interface-id> command to see the current DTP negotiation status, mode, and neighbor information.
Example output from show dtp interface fa0/1:
Key fields:
TOS/TAS/TNS: ACCESS/AUTO/ACCESS— shows the operational/administrative/negotiated statesTOT/TAT/TNT: NATIVE/NEGOTIATE/NATIVE— trunk operating/administrative/negotiated typeNeighbor address— MAC (Media Access Control) address of the DTP neighborHello timer expiration— DTP sends hellos every 30 secondsFSM state: S2:ACCESS— the final negotiated result (Finite State Machine)
Best practice recommendations:
- Explicitly set all ports to
accessortrunk— don't rely on DTP auto-negotiation - Use
switchport nonegotiateon trunk ports to stop sending DTP frames - Set unused ports to
accessmode and shut them down
Why disable DTP? An attacker with physical access could connect a device that sends DTP frames, trick a dynamic port into becoming a trunk, and then receive traffic from all VLANs (Virtual Local Area Networks) on the switch. This is called a VLAN hopping attack via DTP manipulation.
Go deeper:
VLAN hopping — switch spoofing (Wikipedia) — the dynamic-port abuse the verification/hardening steps defend against.