CCNA Switching and Network Access Practice Question
Which command places a switch port into access mode directly?
⚠ Common exam trap
Be careful not to confuse VLAN assignment or negotiation commands with those that explicitly set port modes.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
switchport mode access
A switch port is placed into access mode with the `switchport mode access` command. In plain language, this tells the switch that the interface should behave as a single-VLAN user-facing access port rather than as a trunk or a negotiation-based port. This is the normal choice for an endpoint such as a PC, printer, or IP camera that should belong to one VLAN. This command matters because it makes the intended role of the interface explicit. That clarity is useful operationally and helps avoid accidental trunking behavior. The correct answer is the command that directly defines the switchport as access rather than assigning a VLAN without setting the role or relying on negotiation.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
switchport mode access
Why this is correct
The `switchport mode access` command explicitly configures the switch port to operate in a single-VLAN, non-trunking state, satisfying the stem’s requirement to place the port “directly” into access mode without intermediate negotiation. This command immediately disables Dynamic Trunking Protocol (DTP) on the interface, forcing it into a static access role rather than relying on dynamic auto or desirable modes.
- ✗
switchport trunk allowed vlan 10
Why it's wrong here
The `switchport trunk allowed vlan 10` command is a trunk-specific parameter that restricts which VLANs are permitted to traverse an already-established trunk link. It does not alter the port's mode; it only filters the VLAN traffic that is allowed to pass over a trunk, which carries multiple tagged VLANs. Since an access port carries only one untagged VLAN and does not use trunking, applying this command does not place the port into access mode—it merely adjusts the allowed VLAN list on a trunk port.
When this WOULD be correct
If the question asked about configuring VLANs on a trunk port, specifically how to restrict the allowed VLANs to only VLAN 10, then this option would be correct as it directly addresses that scenario.
- ✗
switchport mode dynamic desirable
Why it's wrong here
The `switchport mode dynamic desirable` command configures the interface to actively send Dynamic Trunking Protocol (DTP) frames and negotiate a trunk link with a neighboring switch if the neighbor is also set to dynamic desirable or trunk mode. This leaves the port's final mode uncertain until negotiation completes, meaning the port could end up as a trunk rather than an access port. Because the stem requires a command that directly places the port into access mode without negotiation, this command is incorrect; only the explicit `switchport mode access` command achieves that static configuration.
When this WOULD be correct
If the question asked which command configures a switch port to dynamically negotiate trunking with another device, then 'switchport mode dynamic desirable' would be the correct answer, as it enables the port to initiate trunking negotiation.
- ✗
no switchport
Why it's wrong here
The `no switchport` command on a Layer 2 switch interface removes its switchport functionality, converting it into a routed port that operates at Layer 3 and requires an IP address for forwarding. This action completely removes the interface from the VLAN-based switching domain, so it cannot function as an access port that carries traffic for a single VLAN. Therefore, it fails to meet the requirement of placing the switch port into access mode because it invalidates the port's Layer 2 operation altogether.
When this WOULD be correct
If the exam question asked which command would disable Layer 2 functionality on a switch port and convert it to a Layer 3 routed port, then 'no switchport' would be the correct answer.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The 200-301 exam frequently reuses these exact scenarios with slightly different constraints.
✓switchport mode accessCorrect answer▾
Why this is correct
The `switchport mode access` command explicitly configures the switch port to operate in a single-VLAN, non-trunking state, satisfying the stem’s requirement to place the port “directly” into access mode without intermediate negotiation. This command immediately disables Dynamic Trunking Protocol (DTP) on the interface, forcing it into a static access role rather than relying on dynamic auto or desirable modes.
✗switchport trunk allowed vlan 10Wrong answer — click to see why▾
Why this is wrong here
The command 'switchport trunk allowed vlan 10' is used on a trunk port to specify which VLANs are allowed to traverse the trunk link. It does not change the port mode to access; instead, it assumes the port is already a trunk. Therefore, it is incorrect for placing a switch port into access mode.
★ When this WOULD be the correct answer
If the question asked about configuring VLANs on a trunk port, specifically how to restrict the allowed VLANs to only VLAN 10, then this option would be correct as it directly addresses that scenario.
Why candidates choose this
Students might confuse VLAN configuration with port mode, thinking that specifying an allowed VLAN on a trunk is similar to assigning a VLAN to an access port. The word 'vlan' in the command can mislead them into believing it sets the port to access mode.
✗switchport mode dynamic desirableWrong answer — click to see why▾
Why this is wrong here
The command 'switchport mode dynamic desirable' enables Dynamic Trunking Protocol (DTP) to actively negotiate trunking with the connected device. This does not directly place the port into access mode; instead, it allows the port to become a trunk if the neighbor agrees. The port remains in a dynamic state until negotiation completes.
★ When this WOULD be the correct answer
If the question asked which command configures a switch port to dynamically negotiate trunking with another device, then 'switchport mode dynamic desirable' would be the correct answer, as it enables the port to initiate trunking negotiation.
Why candidates choose this
Test-takers with partial knowledge might think 'dynamic desirable' is a mode that automatically configures the port as access, confusing the dynamic negotiation feature with a static access mode. The word 'desirable' can imply a preferred state, but it is actually a trunk negotiation setting.
✗no switchportWrong answer — click to see why▾
Why this is wrong here
The command 'no switchport' converts a Layer 2 switch port into a Layer 3 routed port, which is used for routing between VLANs or connecting to routers. This removes all Layer 2 switching functionality, including VLAN assignment, and is the opposite of placing the port into access mode.
★ When this WOULD be the correct answer
If the exam question asked which command would disable Layer 2 functionality on a switch port and convert it to a Layer 3 routed port, then 'no switchport' would be the correct answer.
Why candidates choose this
Students might misinterpret 'no switchport' as removing trunking or reverting to a default access state, not realizing it changes the port to a routed interface. The negation of 'switchport' can be confusing, leading them to think it sets the port to a basic switching mode.
Analysis generated from the official 200-301blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Visual reference
Quick reference
OSI Model Reference
| Layer | Name | PDU | Key Protocols / Devices |
|---|---|---|---|
| 7 | Application | Data | HTTP, HTTPS, DNS, SMTP, FTP, SSH |
| 6 | Presentation | Data | TLS / SSL, JPEG, ASCII encoding |
| 5 | Session | Data | NetBIOS, RPC, SIP |
| 4 | Transport | Segment / Datagram | TCP, UDP |
| 3 | Network | Packet | IP, ICMP, OSPF — Routers |
| 2 | Data Link | Frame | Ethernet, Wi-Fi, PPP — Switches, Bridges |
| 1 | Physical | Bits | Cables, NICs, Hubs, Repeaters |
Go deeper
Related to this question
Learn chapter
Configuring Switch Ports for Desktops, VoIP Phones, APs, IoT, and Virtualized Hosts
Key term
Switchport
A switchport is a physical or virtual interface on a network switch that connects devices like computers, printers, or other switches to a local area network.
Key term
Access port
An access port is a switch port that connects to a single end device, like a computer or printer, and carries traffic for only one VLAN.
About these practice questions
This 200-301 question is part of Courseiva's 1,389-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 200-301 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-301 exam.