What Is Dynamic auto in Networking?
On This Page
Quick Definition
Dynamic auto is a setting on a network switch port that tells it to wait for the other device to ask for a trunk connection. If the other device sends the right signal, the two will create a trunk that carries multiple VLANs. If no signal comes, the port stays as a regular access port for a single VLAN. This mode is the default on many Cisco switches running certain software versions.
Commonly Confused With
Dynamic desirable actively sends DTP frames to initiate trunking, while dynamic auto only responds to incoming DTP requests. Dynamic desirable is proactive; dynamic auto is reactive. If both sides are dynamic desirable, a trunk forms quickly. If both are dynamic auto, no trunk forms.
Think of dynamic desirable as calling someone on the phone to ask for a date. Dynamic auto is waiting for a text. If both wait for a text, nothing happens.
Static trunk mode forces the port to be a trunk regardless of what the other side says. It does not depend on DTP negotiation. In contrast, dynamic auto will only become a trunk if the neighbor requests it. Static trunk is deterministic; dynamic auto is conditional.
Static trunk is like a permanently open door. Dynamic auto is a door that only opens when someone knocks.
Access mode forces the port to be in a single VLAN and disables DTP negotiation entirely. Dynamic auto, by contrast, keeps the possibility of trunking alive. Access mode is used for end devices like PCs, while dynamic auto is for switch-to-switch connections.
Access mode is a private entrance that never becomes a shared corridor. Dynamic auto is a gate that can become a shared corridor if someone asks.
802.1Q is the standard for tagging VLAN frames on a trunk. Dynamic auto is a trunk negotiation mode that decides whether to use 802.1Q. They work together: dynamic auto establishes the trunk, and then 802.1Q handles the actual tagging of frames. You can have trunking without dynamic auto (by static config), but 802.1Q is always needed for multiple VLAN traffic.
Dynamic auto is like deciding which door to use; 802.1Q is the label on the luggage that says which destination it belongs to.
Must Know for Exams
Dynamic auto is a specific topic in the CCNA (200-301) exam, particularly under the domain of Network Access, which covers VLANs and trunking. The exam expects you to know the four DTP modes: access, trunk, dynamic auto, and dynamic desirable. Understanding the difference between dynamic auto and dynamic desirable is tested frequently, often in multiple-choice questions that ask which mode will or will not form a trunk in a given scenario.
For example, a typical CCNA question might present two switches connected by an interface. Switch 1 has "switchport mode dynamic auto" and Switch 2 has "switchport mode dynamic auto". The question asks: will the link become a trunk? The correct answer is no, because neither side initiates the DTP negotiation. If one side were dynamic desirable, the answer would change to yes.
The exam also tests the interaction between dynamic auto and other modes. You need to know that dynamic auto will form a trunk with dynamic desirable or trunk mode, but not with access mode or another dynamic auto port. This is a key concept for troubleshooting questions where candidates must identify why a trunk is not forming.
CCNA objectives include security implications. You may be asked to identify a security best practice: disabling DTP with "switchport nonegotiate" on all ports that are not connected to another switch that needs trunking. The exam might present a scenario where a dynamic auto port on an edge switch creates a security vulnerability. You must recommend changing the mode to access with DTP disabled.
Finally, the exam may ask about encapsulation negotiation. Dynamic auto only works with DTP, and if the neighbor does not support DTP (like a non-Cisco device), the trunk will not form. You need to know that with a non-Cisco switch, you must manually set both sides to trunk mode with "switchport mode trunk" and the appropriate encapsulation.
Because dynamic auto is a small concept but appears in at least one or two questions on the CCNA exam, mastering it can earn you easy points. It is also a gateway to understanding more complex trunking and VLAN topics.
Simple Meaning
Imagine you are at a sliding door and the sign says "Dynamic Auto". This means you will only open the door if someone on the other side presses the buzzer to come in. You will not ring the bell yourself. If the other person does not press the buzzer, the door stays closed and you treat them like a regular visitor.
In networking, a switchport in dynamic auto mode will become a trunk only if the device connected to it actively tries to form a trunk using a protocol called DTP (Dynamic Trunking Protocol). If the neighbor does not ask for a trunk, the port stays as an access port, carrying traffic for just one VLAN. This is like the door staying closed unless someone specifically requests entry.
The key point is that dynamic auto is passive. It does not initiate the trunk negotiation, so it relies entirely on the other device to make the first move. This is different from "dynamic desirable", which actively tries to form a trunk. Think of it like being polite but shy: you will happily form a trunk if the other side asks, but you will not start the conversation yourself. This behavior is important because it prevents accidental trunk formation while still allowing trunks to be created automatically when needed.
Full Technical Definition
Dynamic auto is a switchport trunking mode defined by the Dynamic Trunking Protocol (DTP), a Cisco proprietary protocol. When a switchport is configured with "switchport mode dynamic auto", the interface runs DTP to listen for trunk negotiation messages from the neighboring device. If it receives a DTP frame that indicates the neighbor wants to form a trunk, the local port will also negotiate to become a trunk, and the two switches will exchange frames tagged with IEEE 802.1Q encapsulation (or ISL on older Cisco hardware).
If the nearby port is in dynamic auto mode as well, neither side will initiate the DTP negotiation. In that case, the link will remain as an access port, even though both switches are capable of trunking. This is a common source of connectivity issues, especially when linking two Cisco switches that both default to dynamic auto. To successfully form a trunk, at least one side must be configured with "switchport mode dynamic desirable" or "switchport mode trunk".
DTP uses a specific frame format with a destination MAC address of 01-00-0C-CC-CC-CC, which is a Cisco multicast address. The frame carries information about the port's desired mode and VLAN encapsulation type. Dynamic auto ports will respond to DTP frames that include a request to trunk, but will never send such a request unless they receive an incoming DTP frame that suggests trunking is desired.
In terms of VLAN handling, when a port is in dynamic auto mode and not trunking, it behaves exactly as an access port: it belongs to a single VLAN (usually VLAN 1 unless changed), and all frames are sent untagged. Once trunking is established, the port tags frames with the appropriate VLAN ID using 802.1Q, except for the native VLAN which remains untagged.
Cisco's implementation of dynamic auto is enabled by default on many switch platforms, including Catalyst 2960, 3560, and 3850 series, but newer switches like Catalyst 9000 series often have DTP disabled by default for security reasons. Security best practices discourage the use of dynamic trunking modes because they can be exploited in VLAN hopping attacks, so many network administrators explicitly disable DTP using "switchport nonegotiate" and set ports statically to access or trunk.
Real-Life Example
Think of a neighborhood watch meeting. Two neighbors, Alice and Bob, each have a gate that connects their yards. There is a rule: if one neighbor wants to share a common path to the parking area, they need to open a gate between the yards. Alice's gate is set to "dynamic auto". She will only open her gate if Bob specifically knocks and asks for it. If Bob stays quiet, the gate stays shut and each uses their own separate path.
Now suppose Bob's gate is also in "dynamic auto" mode. Neither knocks, so both gates stay closed even though the shared path would be useful. To actually get the gates to open, either Alice or Bob must be set to "dynamic desirable", meaning they will knock proactively, or one of them must be set to "trunk", meaning the gate is always open.
This map directly to networking. The gate is the trunk link, the knocking is the DTP message, and the shared path is the ability to carry multiple VLANs. Just as Alice and Bob would miss out on the convenience of the shared path if both wait, two switches both set to dynamic auto will fail to create a trunk, and traffic from multiple VLANs will not pass between them. In real life, you might have a situation where a manager sets both gates to "dynamic auto" thinking it will "just work", but instead the employees have to keep walking around the long way, frustrated. In networking, this means VLAN traffic gets blocked, causing connectivity problems that are hard to diagnose.
Why This Term Matters
Dynamic auto matters in real-world IT because it directly affects how VLAN traffic flows between switches. When you are building a network in a company, you often need to connect multiple switches so that devices in different VLANs (like HR, Finance, and Guest Wi-Fi) can talk to each other. Using trunk links is essential for that. If trunking fails, certain VLANs become isolated, breaking connectivity for users and servers.
Many network engineers assume that plugging two Cisco switches together will automatically trunk because they "speak the same language". But if both are set to dynamic auto, the trunk will not form. This leads to hours of troubleshooting confusion. You check the configuration, you see no errors, but traffic from VLAN 10 cannot reach VLAN 20 on the other switch. The culprit is often the dynamic auto mode.
from a security perspective, dynamic auto can be a risk. If an attacker connects a device that sends DTP messages, a dynamic auto port might automatically become a trunk, giving the attacker access to all VLANs. This is a classic VLAN hopping attack. For this reason, production environments often disable DTP entirely with the "switchport nonegotiate" command and set ports manually. Dynamic auto is really only useful in small labs or when you are certain about the neighbor's configuration.
Understanding dynamic auto helps you write better switch configurations and avoid unexpected behavior. When you see a trunk not forming, you know to check the DTP mode on both ends. And when you are asked to harden a network, you know dynamic auto is a setting that should be replaced with static access or trunk mode.
How It Appears in Exam Questions
Dynamic auto appears in three main types of questions: configuration, troubleshooting, and scenario-based.
In configuration questions, you might see a command sequence where a candidate is setting up a trunk between two Catalyst switches. The question gives a partial configuration and asks what command should be added to ensure the trunk is established. For example, SwitchA has "switchport mode dynamic auto" and SwitchB has "switchport mode dynamic desirable". The question might ask: "Which additional command is needed?" The trick is that no additional command is needed, the trunk will form automatically because dynamic desirable initiates the negotiation. But if both were dynamic auto, the correct answer would be to change one side to dynamic desirable or trunk.
Troubleshooting questions often present a scenario where two switches are connected, but VLAN traffic is not passing between them. The output of "show interfaces trunk" shows that the link is not trunking. The candidate must examine the "show running-config" on each switch and notice that both ports are in dynamic auto mode. The solution involves changing one side's mode to static trunk or dynamic desirable.
Scenario questions describe a network with a Cisco switch connected to a non-Cisco switch. The candidate is asked whether dynamic auto will work. The correct answer is no, because DTP is proprietary to Cisco. The non-Cisco switch will not send or understand DTP frames, so the Cisco port will remain in access mode. The fix is to manually configure trunking on both ends.
Another style is a multiple-choice question listing the combinations of DTP modes and asking which pair will result in a trunk. Options might include dynamic auto/dynamic auto, dynamic auto/dynamic desirable, dynamic auto/trunk, dynamic auto/access. The correct answers are dynamic auto/dynamic desirable and dynamic auto/trunk. This requires memorizing the DTP negotiation table.
The exam might also present a security-related question where an attacker connects a laptop running a DTP spoofing tool to a dynamic auto port. The question asks what the attacker gains. The answer is that the port becomes a trunk, giving the attacker visibility into all VLANs, emphasizing the need to disable DTP on access ports.
Practise Dynamic auto Questions
Test your understanding with exam-style practice questions.
Example Scenario
You have two Cisco 2960 switches in a small office. Switch A is in the server room, and Switch B is in the IT closet. You connect them with a cable between port Fa0/1 on Switch A and port Fa0/1 on Switch B. You expect that VLANs 10, 20, and 30 will be able to communicate across the link. However, after configuring the VLANs, you notice that computers in VLAN 10 on Switch A cannot ping computers in VLAN 10 on Switch B. You check the trunk status with "show interfaces trunk", and both ports show that the interface is not trunking.
You then run "show running-config interface fa0/1" on both switches. On Switch A, you see "switchport mode dynamic auto". On Switch B, you also see "switchport mode dynamic auto". You realize both sides are set to dynamic auto, so neither initiates the DTP negotiation. The link remains as an access port in VLAN 1, which is why the other VLANs are blocked.
To fix this, you go to Switch A's configuration and change the mode to "switchport mode dynamic desirable". This makes Switch A actively send DTP frames to Switch B. Switch B, still in dynamic auto, receives the request and agrees to form a trunk. Now, when you check "show interfaces trunk", you see that the link is trunking and carrying VLANs 1 and 10-30. The ping now works.
This scenario illustrates how dynamic auto can cause a silent connectivity problem. If you had not checked both configurations, you might have wasted time checking cables or VLAN definitions. Understanding that both sides need at least one active negotiator saves time. In a larger network with dozens of inter-switch links, this mistake can create widespread islands of unreachable VLANs.
Common Mistakes
Configuring both ends of a link with "switchport mode dynamic auto" and expecting a trunk to form automatically.
Dynamic auto is passive. It only responds to DTP requests but never sends them. When both sides wait, no trunk negotiation occurs, and the link remains an access port.
Change one side to "switchport mode dynamic desirable" or "switchport mode trunk" so that at least one side initiates the DTP negotiation.
Assuming dynamic auto will trunk with any device, including non-Cisco switches.
DTP is a Cisco proprietary protocol. Non-Cisco switches do not send or understand DTP frames. A dynamic auto port connected to a non-Cisco device will never become a trunk.
Use static trunk configuration on both ends, setting both to "switchport mode trunk" with compatible encapsulation like 802.1Q.
Thinking dynamic auto is more secure than dynamic desirable because it is passive.
Dynamic auto still listens for DTP messages. An attacker sending a DTP request can still turn the port into a trunk, gaining access to all VLANs. The security risk is similar.
On access ports that connect to end devices, explicitly configure "switchport mode access" and add "switchport nonegotiate" to disable DTP entirely.
Confusing dynamic auto with the "auto" setting in other contexts like speed or duplex negotiation.
Dynamic auto is specific to trunking mode, not physical layer settings. It does not automatically adjust speed or duplex. Misunderstanding can lead to incorrect configuration commands.
Remember that "dynamic auto" only controls trunking via DTP. For physical parameters, use separate commands like "speed auto" and "duplex auto".
Believing that dynamic auto will form a trunk if the neighbor is set to "switchport mode access".
Access mode does not send or respond to DTP frames. The dynamic auto port will never receive a trunking request, so the link stays as access.
For trunking, ensure the neighbor is set to one of these modes: dynamic desirable, trunk, or sometimes dynamic auto (only if the other side is dynamic desirable or trunk).
Exam Trap — Don't Get Fooled
{"trap":"You will see a question where two switches are connected, both with \"switchport mode dynamic auto\" configured. The answer choices include \"yes, the trunk will form\" and \"no, the trunk will not form.\"","why_learners_choose_it":"Learners often think \"auto\" means the switch will automatically determine the best mode, similar to other \"auto\" settings in networking.
They assume both sides will negotiate successfully without manual intervention.","how_to_avoid_it":"Memorize the DTP negotiation table: dynamic auto + dynamic auto = access (no trunk). Only when at least one side is dynamic desirable or trunk will a trunk form.
Create a mnemonic: \"Auto waits, Desirable asks. Two waiters never get a table.
Step-by-Step Breakdown
Port initialization
A switch port configured with "switchport mode dynamic auto" boots up and enters a listening state. It is capable of trunking but does not send any DTP frames yet. It waits for incoming data on the port.
DTP frame reception
When a frame arrives, the switch checks if it is a DTP frame (destination MAC 01-00-0C-CC-CC-CC). If the first frame is not a DTP frame, the port stays in access mode. If it is a DTP frame, the switch reads the contents to determine the neighbor's trunking mode.
Decision making based on neighbor mode
The switch analyzes the DTP frame. If the neighbor indicates its mode is dynamic desirable or trunk, the dynamic auto port decides to become a trunk. If the neighbor also indicates dynamic auto or access, the dynamic auto port remains as an access port and does not change its state.
Trunk negotiation response
If the decision is to trunk, the dynamic auto port sends back a DTP frame agreeing to negotiate. It then changes its operational mode to trunk and begins sending 802.1Q-tagged frames (or ISL if configured). The native VLAN is handled as untagged traffic.
Operational state maintenance
Once trunking is established, DTP frames are periodically exchanged (every 60 seconds by default) to keep the trunk active. If the trunking neighbor changes or goes down, the dynamic auto port reverts to access mode and again waits for DTP signals.
Security features interaction
If the command "switchport nonegotiate" is configured on the port, DTP is disabled entirely. The dynamic auto port will then ignore all DTP frames and will never negotiate a trunk, regardless of the neighbor's mode. This step is often used to harden the port.
Practical Mini-Lesson
In a production network, you will rarely want to rely on dynamic auto for trunk formation. The reason is predictability and security. When you configure a trunk link between two switches, you usually want it to be a trunk 100% of the time, not just when the neighbor decides to ask. That is why experienced network engineers configure trunk ports with "switchport mode trunk" and disable DTP on both ends.
But understanding dynamic auto is still valuable because you might inherit a network where someone left the default settings. Many Cisco switches, especially older models, ship with all ports in dynamic auto mode. If you connect two of those switches, you will get a nasty surprise: no trunk forms. You need to identify the issue by checking the running configuration and the output of "show interfaces trunk". If the command shows that the port is not trunking, and you see "dynamic auto" in the config, you know the fix.
Another practical skill is understanding how DTP interacts with CDP (Cisco Discovery Protocol). Both protocols help the switch learn about neighbors, but they are not interdependent. DTP can work even if CDP is disabled, though in some older IOS versions, DTP required CDP to be enabled. Modern IOS separates the two, but it is good to verify with "show dtp interface" commands.
What can go wrong? Apart from the trunk not forming, dynamic auto can cause a security issue called VLAN hopping. An attacker with physical access can plug in a device that spoofs DTP frames. If the switchport is dynamic auto, it will become a trunk, allowing the attacker to sniff traffic from all VLANs. The fix is to use "switchport host" (a macro on some switches) that sets the port to access mode and disables trunking. On Cisco switches, a common best practice is to issue "switchport mode access" and "switchport nonegotiate" on every port that connects to a workstation, printer, or IP phone.
Finally, when studying for the CCNA, practice the DTP negotiation matrix. Know the four modes: access, trunk, dynamic auto, dynamic desirable. Create a table for yourself: which pairs result in trunk? Which result in access? Do this exercise until it becomes instinctive. This will help you answer any DTP-related question quickly in the exam.
Memory Tip
Auto waits, Desirable asks. Two Autos never make a trunk.
Covered in These Exams
Current Exam Context
Current exam versions that test this topic — use these objectives when studying.
200-301Cisco CCNA →N10-009CompTIA Network+ →Related Glossary Terms
802.1Q is the networking standard that allows multiple virtual LANs (VLANs) to share a single physical network link by tagging Ethernet frames with VLAN identification information.
802.1X is a network access control standard that authenticates devices before they are allowed to connect to a wired or wireless network.
AAA (Authentication, Authorization, and Accounting) is a security framework that controls who can access a network, what they are allowed to do, and tracks what they did.
Frequently Asked Questions
Does dynamic auto work with non-Cisco switches?
No, because Dynamic Trunking Protocol (DTP) is a Cisco proprietary protocol. Non-Cisco switches do not send or respond to DTP frames, so a dynamic auto port will remain as an access port.
Why is dynamic auto the default on some Cisco switches?
Cisco historically set the default to dynamic auto to allow flexibility when connecting switches. However, it often causes confusion and security risks. Newer switches are moving to static access mode as the default.
Can I see if a port is in dynamic auto mode?
Yes, use the command "show interfaces trunk" to see which ports are trunking. Use "show running-config interface [port]" to view the configured mode. Also "show dtp interface [port]" displays detailed DTP status.
What happens if I connect a dynamic auto port to a trunk port?
The trunk port actively sends DTP frames. The dynamic auto port will respond and the link will become a trunk. This is one of the valid trunk-forming combinations.
Is dynamic auto the same as "auto negotiation" for speed?
No. Dynamic auto is specific to trunk mode negotiation using DTP. Speed and duplex auto-negotiation is a separate process defined by IEEE 802.3. They operate independently on a switch port.
How do I disable DTP on a dynamic auto port?
Add the command "switchport nonegotiate" to the interface configuration. This stops the port from sending or listening to DTP frames. The port will then stay in its configured mode without negotiating.
Summary
Dynamic auto is a trunking mode in Cisco's Dynamic Trunking Protocol (DTP) that allows a switch port to become a trunk only if the neighboring device actively initiates the trunk negotiation. It is a passive setting: the port waits for a DTP request and responds accordingly. If the neighbor is also in dynamic auto mode, the trunk will not form, leading to VLAN isolation. This behavior makes dynamic auto a common source of troubleshooting confusion, especially for CCNA candidates.
Understanding dynamic auto is important because it appears directly in CCNA exam questions about VLANs and trunking. It also has real-world security implications, as attackers can exploit DTP to gain unauthorized access. Network professionals should know when to use dynamic auto (rarely) and when to disable it (almost always). The best practice is to configure static trunk mode on inter-switch links and static access mode with DTP disabled on edge ports.
For the CCNA exam, focus on the DTP negotiation matrix: dynamic auto pairs with dynamic desirable or trunk to form a trunk, but pairs with dynamic auto or access to remain as an access port. Use the memory trick "Auto waits, Desirable asks" to recall which mode initiates the conversation. Mastering this small topic can earn you easy points and help you troubleshoot real networks more effectively.