Courseiva
Question 854 of 1,389
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 switch port for data and voice traffic.

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 interface configuration mode for the desired switch port.

The correct order is: 1) Enter interface configuration mode, because all port-specific commands must be applied under the interface. 2) Set the port as an access port with 'switchport mode access'—a voice VLAN can only be assigned on an access port. 3) Assign the data VLAN with 'switchport access vlan' to ensure proper Layer 2 forwarding for data traffic. 4) Assign the voice VLAN with 'switchport voice vlan' so the IP phone's voice frames are tagged with the voice VLAN. 5) Enable PortFast with 'spanning-tree portfast' to immediately transition the port to forwarding, preventing DHCP timeouts for the phone and host.

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 interface configuration mode for the desired switch port.

    Why this is correct

    This is the prerequisite for any port-level configuration, as it selects the exact physical interface (e.g., GigabitEthernet0/1) that will host the IP phone and downstream PC. Without this mode, the subsequent commands would either be invalid globally or unintentionally apply to all interfaces. Interface configuration mode creates the context in which the access VLAN, voice VLAN, and PortFast settings can be consistently applied to the intended single port.

  • Configure the port as an access port using the switchport mode access command.

    Why this is correct

    Setting the port to static access mode ensures it does not engage in Dynamic Trunking Protocol (DTP) negotiations with the IP phone, which could otherwise turn the link into a trunk and disrupt VLAN assignment. In an access port, the switch strips any VLAN information from untagged frames from the PC and assigns them to the configured access VLAN, while voice frames from the phone remain tagged and are matched to the voice VLAN. This command provides a predictable, deterministic forwarding behavior essential for a mixed-mode voice/data connection.

  • Assign the data VLAN to the access port with the switchport access vlan command.

    Why this is correct

    This command defines the VLAN that will carry untagged traffic sent by the PC connected to the IP phone's integrated switch, thereby separating data traffic from the voice VLAN. Without a specific data VLAN assignment, the switch would leave the port in its default VLAN (usually VLAN 1), which may conflict with the organization's addressing and security design. Properly assigning the access VLAN ensures that all broadcast frames and user traffic are confined to the correct Layer 2 segment.

  • Assign the voice VLAN to the port using the switchport voice vlan command.

    Why this is correct

    The `switchport voice vlan` command performs two critical functions: it sets the VLAN that will carry IP phone traffic, and it triggers the switch to send CDP packets with the VLAN ID to the phone, instructing the phone to tag its voice frames with that VLAN. As a result, voice packets are separated from data packets even though both traverse the same physical access port. This separation enables the application of QoS policies that give strict priority to voice traffic over best-effort data.

  • Enable PortFast on the port with the spanning-tree portfast command.

    Why this is correct

    PortFast bypasses the Spanning Tree Protocol (STP) listening and learning states, moving the interface directly to forwarding state, which is critical for devices like IP phones that need immediate connectivity during boot. Without PortFast, the port could remain in a blocking state for 15 to 30 seconds, causing the phone's call manager to mark it unavailable or delaying DHCP for the PC. It is safe to enable PortFast only on ports that connect to end hosts, never on ports facing other switches, where it could introduce bridging loops.

Visual reference

Client DHCP Server 1 Discover (broadcast) 2 Offer (IP: 192.168.1.10) 3 Request (I accept) 4 Acknowledge (lease confirmed) DORA — the four-step DHCP lease process

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 14, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.