switchport voice vlan
switchport voice vlan
Use the switchport voice vlan interface configuration command to configure voice VLAN on the port.
Use the no form of this command to return to the default setting.
Syntax Description
vlan-id
dot1p
none
untagged
Defaults
The switch default is not to automatically configure the telephone (none).
The telephone default is not to tag frames.
Command Modes
Interface configuration
Command History
Release
12.2(25)SEE
Usage Guidelines
You should configure voice VLAN on Layer 2 access ports.
You must enable Cisco Discovery Protocol (CDP) on the switchport connected to the Cisco IP phone for
the switch to send configuration information to the phone. CDP is enabled by default globally and on the
interface.
Before you enable voice VLAN, we recommend that you enable quality of service (QoS) on the switch
by entering the mls qos global configuration command and configure the port trust state to trust by
entering the mls qos trust cos interface configuration command.
When you enter a VLAN ID, the IP phone forwards voice traffic in IEEE 802.1Q frames, tagged with
the specified VLAN ID. The switch puts IEEE 802.1Q voice traffic in the voice VLAN.
When you select dot1q, none, or untagged, the switch puts the indicated voice traffic in the access
VLAN.
In all configurations, the voice traffic carries a Layer 2 IP precedence value. The default is 5 for voice
traffic.
Cisco Catalyst Blade Switch 3030 Command Reference
2-516
switchport voice vlan {vlan-id | dot1p | none | untagged}
no switchport voice vlan
Specify the VLAN to be used for voice traffic. The range is 1 to 4094. By default, the
IP phone forwards the voice traffic with an IEEE 802.1Q priority of 5.
Configure the telephone to use IEEE 802.1p priority tagging and uses VLAN 0 (the
native VLAN). By default, the Cisco IP phone forwards the voice traffic with an
IEEE 802.1p priority of 5.
Do not instruct the IP telephone about the voice VLAN. The telephone uses the
configuration from the telephone key pad.
Configure the telephone to send untagged voice traffic. This is the default for the
telephone.
Modification
This command was introduced.
Chapter 2 Cisco Catalyst Blade Switch 3030 Cisco IOS Commands
78-17262-01