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.
In a nutshell
The same port can carry PC data (untagged) and IP phone voice (tagged) in different VLANs.
In this lesson
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.
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.