CCNA · Lesson 6 of 13

DTP: Automatic Trunk Negotiation

Cisco switches can "agree" on their own to form a trunk. You must know when they succeed and when they do not.

By topologia.appUpdated: Nov 13, 2026⏱ 5 min❓ 4 questions📶 Level beginner

In a nutshell

DTP lets two Cisco switches decide on their own whether the link will be a trunk. If both are "auto", no trunk is formed.

In this lesson
  1. What is DTP?
  2. The 4 modes
  3. Combination table (memorize it)
  4. Default mode
  5. Disable DTP
  6. What you must remember
  7. Exam-style questions

What is DTP?

DTP (Dynamic Trunking Protocol) is a Cisco proprietary protocol. Two connected switches exchange DTP messages and decide whether the link will be a trunk or an access link.

The 4 modes

ModeCommandBehavior
accessswitchport mode accessAlways access. Never forms a trunk.
trunkswitchport mode trunkAlways trunk. Sends DTP so the other side becomes a trunk too.
dynamic desirableswitchport mode dynamic desirable"I want to be a trunk": actively asks for it.
dynamic autoswitchport mode dynamic auto"I wait to be asked": only trunks if the other side asks.

Combination table (memorize it)

dynamic autodynamic desirabletrunkaccess
dynamic autoAccessTrunkTrunkAccess
dynamic desirableTrunkTrunkTrunkAccess
trunkTrunkTrunkTrunkNot recommended
accessAccessAccessNot recommendedAccess

Memory trick: "auto" is shy. Two shy ones (auto + auto) never start the conversation, so the link stays access. It is enough for one side to want it (desirable or trunk) for the trunk to form.

Trunk on one side and access on the other is a misconfiguration: the link does not work as expected and generates errors.

Default mode

On many current switches (for example the 2960 series and Catalyst 9000) the default mode is dynamic auto. That is why two new switches connected together do not form a trunk on their own.

Disable DTP

Letting switches negotiate is a risk: an attacker with a device that speaks DTP could form a trunk and see every VLAN. The recommended practice is to configure everything manually and turn DTP off:

SW1(config)# interface g0/1
SW1(config-if)# switchport mode trunk
SW1(config-if)# switchport nonegotiate  ← stops sending DTP messages

SW1# show interfaces g0/1 switchport
Administrative Mode: trunk
Operational Mode: trunk
Negotiation of Trunking: Off

What you must remember

  • DTP is Cisco proprietary and negotiates trunk or access.
  • auto + auto = access. desirable with auto, desirable or trunk = trunk.
  • The default mode on many switches is dynamic auto.
  • Best practice: fixed mode + switchport nonegotiate.

Check what you learned

4 exam-style questions. Some have one answer and others ask you to choose several. Answer them all to complete the lesson.

Question 1 of 4 · One answerInterfaces G0/1 on SW1 and SW2 are connected to each other and both have switchport mode dynamic auto. What will be the result?
Question 2 of 4 · One answerSW1 has dynamic desirable and SW2 has dynamic auto on the link between them. What will the operational mode be?
Question 3 of 4 · Choose twoWhich two mode combinations form a trunk? (Choose two.)
Question 4 of 4 · One answerWhich command disables DTP messages on an interface configured as a trunk?