Scenario

Each desk has an IP phone, with the PC plugged into the phone. The PCs must be in the data VLAN 10 (DATA). The phones must be in the voice VLAN 150 (VOICE), so their traffic stays apart. Fa0/1 and Fa0/2 are desk ports. Fa0/3 is a network printer and belongs in VLAN 10 only, with no voice VLAN. Gi0/1 is the uplink to the distribution switch and must carry exactly the two VLANs.

Topology

SW1SW2

Requirements

  1. 1VLAN 10 is named DATA and VLAN 150 is named VOICE
  2. 2Fa0/1 is an access port in VLAN 10 with voice VLAN 150
  3. 3Fa0/2 is an access port in VLAN 10 with voice VLAN 150
  4. 4Fa0/3 is an access port in VLAN 10 and has no voice VLAN
  5. 5Gi0/1 is a trunk that carries exactly VLANs 10 and 150
  6. 6Fa0/1 and Fa0/2 have PortFast

SW1 is a new switch with default settings. Type ? for the commands you can use. Start with: enable

SW1> show running-config

CCNA lab · about 12 min

Voice VLAN: IP phones and PCs on one access port

Create a data VLAN and a voice VLAN, give two desk ports both an access VLAN and a voice VLAN with switchport voice vlan, keep the printer port on data only, and carry both VLANs on the uplink trunk.

This lab is included in the CCNA plans and in the free trial.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

Each desk has an IP phone, with the PC plugged into the phone. The PCs must be in the data VLAN 10 (DATA). The phones must be in the voice VLAN 150 (VOICE), so their traffic stays apart. Fa0/1 and Fa0/2 are desk ports. Fa0/3 is a network printer and belongs in VLAN 10 only, with no voice VLAN. Gi0/1 is the uplink to the distribution switch and must carry exactly the two VLANs.

About 12 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Is this a real Cisco switch?

No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one switch, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

Is a port with a voice VLAN a trunk?

No. It is still an access port, and show interfaces trunk does not list it. The phone sends its own frames tagged with the voice VLAN ID, and the PC behind it sends untagged frames in the access VLAN.

How does the phone learn the voice VLAN?

The switch sends it in CDP, or in LLDP-MED. The phone then tags its frames with the ID. Without that exchange the phone sends untagged frames.

Why use a separate voice VLAN?

To keep voice traffic apart from data, to apply quality-of-service rules to it, to limit broadcasts, and to give it its own subnet and security rules.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.