CCNA · Lesson 8 of 13

Voice VLAN: IP Phone and PC on the Same Port

One cable, two kinds of traffic: PC data and phone voice. This is how they are separated.

By topologia.appUpdated: Nov 13, 2026⏱ 5 min❓ 4 questions📶 Level beginner

In a nutshell

The same port can carry PC data (untagged) and IP phone voice (tagged) in different VLANs.

In this lesson
  1. The scenario
  2. Why separate voice?
  3. Configuration
  4. How it works inside
  5. What you must remember
  6. Exam-style questions

The scenario

Many offices have only one network jack per desk. The IP phone is connected to the switch and the PC to the phone (the phone has a small built-in switch). Data and voice travel over that single cable.

PC connected to an IP phone, and the phone to switch port Fa0/5 1 cable: data + voiceFa0/5 VLAN 10 untagged VLAN 150 tagged SW1 ☎ IP phone PC1
The PC sends its data untagged (VLAN 10). The phone sends voice tagged (VLAN 150).Edit in the editor ↗

Why separate voice?

Voice does not tolerate delay: if a packet arrives late, the call drops or sounds robotic. Putting voice in its own VLAN lets you apply QoS (quality of service) and prioritize it over a file download.

Configuration

SW1(config)# vlan 10
SW1(config-vlan)# name DATA
SW1(config)# vlan 150
SW1(config-vlan)# name VOICE
SW1(config)# interface fa0/5
SW1(config-if)# switchport mode access
SW1(config-if)# switchport access vlan 10  ← PC data (untagged)
SW1(config-if)# switchport voice vlan 150  ← phone voice (802.1Q tagged)

How it works inside

  • The port is still an access port; it is not a trunk.
  • The switch tells the phone which VLAN to use for voice through CDP (or LLDP-MED on other vendors' phones).
  • The phone tags its traffic with VLAN 150 and marks priority in the PRI field (CoS 5).
  • The PC sends normal untagged frames, which the switch places in VLAN 10.
SW1# show interfaces fa0/5 switchport
Administrative Mode: static access
Operational Mode: static access
Access Mode VLAN: 10 (DATA)
Voice VLAN: 150 (VOICE)

What you must remember

  • Voice and data share the port: data untagged, voice tagged.
  • Command: switchport voice vlan 150.
  • The port is still an access port.
  • The phone learns the voice VLAN through CDP or LLDP-MED.

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.

Question 1 of 4 · One answerWhich command configures VLAN 150 as the voice VLAN on an interface?
Question 2 of 4 · Choose twoFa0/5 has switchport access vlan 10 and switchport voice vlan 150. A PC is connected behind an IP phone. Which two statements are correct? (Choose two.)
Question 3 of 4 · One answerHow does a Cisco IP phone learn which voice VLAN to use?
Question 4 of 4 · One answerWhat is the main reason to place IP telephony in a separate voice VLAN?