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.
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
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
| Mode | Command | Behavior |
|---|---|---|
| access | switchport mode access | Always access. Never forms a trunk. |
| trunk | switchport mode trunk | Always trunk. Sends DTP so the other side becomes a trunk too. |
| dynamic desirable | switchport mode dynamic desirable | "I want to be a trunk": actively asks for it. |
| dynamic auto | switchport mode dynamic auto | "I wait to be asked": only trunks if the other side asks. |
Combination table (memorize it)
| dynamic auto | dynamic desirable | trunk | access | |
|---|---|---|---|---|
| dynamic auto | Access | Trunk | Trunk | Access |
| dynamic desirable | Trunk | Trunk | Trunk | Access |
| trunk | Trunk | Trunk | Trunk | Not recommended |
| access | Access | Access | Not recommended | Access |
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.