Courseiva
Switching and Network AccessmediumDrag & DropObjective-mapped

CCNA Switching and Network Access Practice Question

Drag and drop the following steps into the correct order to configure a Cisco switch access port with a data VLAN and a voice VLAN.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

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

Enter global configuration mode (configure terminal)

First, enter global configuration mode with 'configure terminal'. Next, select the interface using 'interface GigabitEthernet0/1'. Then, set the port to access mode with 'switchport mode access' to prevent trunk negotiation. After that, assign the data VLAN with 'switchport access vlan 10'. Finally, assign the voice VLAN with 'switchport voice vlan 20'. This order ensures the interface is properly configured before VLAN assignment and prevents DTP from creating a trunk.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Enter global configuration mode (configure terminal)

    Why this is correct

    Entering global configuration mode is the mandatory entry point for any switch management task. You must be in privileged EXEC mode first and then issue `configure terminal` to access configuration contexts like interface mode. Without this step, all subsequent VLAN and port-mode commands would be rejected as invalid input. This command sets the device-wide administrative context for the session.

  • Enter interface configuration mode for GigabitEthernet0/1 (interface GigabitEthernet0/1)

    Why this is correct

    The interface GigabitEthernet0/1 command selects the specific physical port that will connect to the IP phone and downstream PC. Interface configuration mode is a child context of global config, and every switchport command you issue here applies only to that interface. If you omitted this step or selected the wrong interface, the VLAN assignments would be applied to the wrong port, breaking connectivity. This targeting step is what makes the later VLAN commands scoped to the correct access port.

  • Configure the port for access mode (switchport mode access)

    Why this is correct

    Configuring switchport mode access statically sets the port as an access port rather than a dynamic or trunk port. An access port accepts only one untagged data VLAN, but it can also carry a separate tagged voice VLAN when configured with a voice VLAN command. This mode prevents the switch from negotiating trunking with the IP phone via DTP, which would otherwise cause the phone's VLAN tags to be mishandled. It is a prerequisite for both the access VLAN and voice VLAN assignments to function correctly.

  • Assign VLAN 10 for data traffic (switchport access vlan 10)

    Why this is correct

    The switchport access vlan 10 command assigns the untagged native VLAN for the access port, which carries the PC's normal data frames. This is the default VLAN for any frames arriving on the port that are not tagged with a voice VLAN. The IP phone's switch port becomes a transparent bridge for the PC's traffic, leaving it untagged so it falls into VLAN 10 on the switch. This separates the PC traffic from the voice traffic on the same physical port.

  • Assign VLAN 20 for voice traffic (switchport voice vlan 20)

    Why this is correct

    The switchport voice vlan 20 command enables the voice VLAN feature on the access port, instructing the switch to accept 802.1Q-tagged frames with VLAN 20 from the IP phone. This tagged traffic is treated as voice traffic, while the PC's untagged traffic is associated with the access VLAN 10. The phone automatically learns the voice VLAN through CDP (or LLDP-MED) and tags its media and control frames accordingly. This command is what enables the coexistence of data and voice on one switch port without a trunk configuration.

Visual reference

Switch VLAN 10 Sales (192.168.10.0/24) PC-A PC-B VLAN 20 HR (192.168.20.0/24) PC-C PC-D Router VLANs isolate traffic — inter-VLAN routing requires a Layer 3 device

Go deeper

Related to this question

About these practice questions

Courseiva writes every 200-301 question from scratch — 1,389 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.