Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

voice vlans on switches

Hi all

with voice vlan config on my switch, what does the command do, does it tag packets with with whatever vlan comes after the command, and then reads untaged packets for the normal access vlan?

so we could use a trunk with the native vlan also for this?

is that all the command does ?

New Member

Re: voice vlans on switches

deleted, wrong username


Re: voice vlans on switches

Hi there,

The switchport voice vlan command initiates CDP packets which tell the phone to send voice traffic with the correct QoS markings (both layer 2 and 3). It should be there to make sure the phones to talk on the right vlan. Also, because its a switchport )not a trunkport) and if you're using stp or pvst then portfast is automatically input onto that port.

This document may help with understanding.

Re: voice vlans on switches

In addition to the above, it also tells the switch port to look for frames already tagged with the vlan number - for use of non cisco phones capable of dot1q and switch them into the voice vlan.


Re: voice vlans on switches

Has this solve your issue - answered your question?

If yes - close the question as resolved and rate if appropriate.

New Member

Re: voice vlans on switches

Hi there

so to clarify, the command is used to put any 802.1p or 802.1q tagged frame coming in on that port onto the voice vlan, as normally pc traffic is untagged?

if so that answers my question and I will close


Re: voice vlans on switches

Not entirely, it does not look for frames with a COS marking in them, as you could apply QoS markings to normal PC data traffic. The CoS/IPP/DSCP markings are sent to a Cisco VoIP Phone if one is connected.

The command allows a non-cisco device to send VoIP frames already tagged with the correct 802.1q value, to be switched in the Voice VLAN.

New Member

Re: voice vlans on switches

hi there

so what if a cisco phone is plugged in?

would i still use the command? I thought any frame marked with a cos value would be classed as a tagged frame? as the .1p sits inside the .1q frame ?

Re: voice vlans on switches

That has nothing to do with it, the physical port is a swicth port, NOT a trunk port.

1) The command tells the switch to "send" the QoS values/VLAN infromation of the voice VLAN to a cisco phone when connected and detected by the switch and the command is configured under the switch port.

2) The command is also used in the cases where the VoIP phones attached is NOT a cisco phone, but you want the switch to understand any frames that have a marking in the priority field in the frame with an inserted 802.1q field, tagged with the voice vlan ID, and should be switched into the voice vlan as the switch port is a normal switch and NOT a trunk.

CreatePlease to create content