Pcornel
Networking · Switching › VLAN

Voice VLAN

Cheat sheet · https://pcornel.dk/topic.php?topic=584

Back to the Topic

Answer

A voice VLAN lets one access port carry an IP phone's traffic tagged in a separate VLAN while the PC behind the phone stays untagged in the data VLAN. Configure it with switchport voice vlan <id>.

Remember

The phone learns the voice VLAN from CDP (or LLDP-MED) and tags its own traffic. If CDP/LLDP is off on the port, the phone sends untagged and lands in the data VLAN. Both VLANs must exist and be carried to the gateways.

First checks

  • show interfaces <if> switchport — Access Mode VLAN and Voice VLAN.
  • show cdp neighbors <if> detail — the phone seen by CDP.
  • show lldp neighbors <if> detail — the phone seen by LLDP-MED.
  • show mac address-table interface <if> — the phone's MAC in the voice VLAN, the PC's in the data VLAN.
  • show power inline <if> — PoE delivered to the phone.

Commands

show interfaces switchport
Shows administrative/operational switchport mode, access VLAN, native VLAN and trunk details.
switchport voice vlan <id>
Assign a voice VLAN to an access port for IP phones.

Verify in this order

voice VLAN configured → phone learns it via CDP/LLDP → phone tags voice traffic → phone MAC learned in the voice VLAN, PC MAC in the data VLAN → both VLANs carried upstream

Where it usually breaks

physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path

Voice VLAN · operational reference

Traffic roleTypical wire formatDependency
Data PCUntaggedAccess VLAN
IP phone voice802.1Q taggedVoice VLAN
Voice discoveryCDP/LLDP-MEDEdge discovery policy
Voice serviceIP/applicationDHCP, gateway, call control

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=584

Confirmation

Confirm action

Continue?