CLI Guide

Table Of Contents
Layer 2 Switching Commands 910
The voice VLAN may not be configured as a PVID. The switch enforces this
restriction by not configuring the voice VLAN, if the VLAN is the PVID of
any port, or by failing the PVID assignment if the VLAN is a voice VLAN.
The voice VLAN may not be configured as the unauthenticated VLAN and
vice-versa.
The voice VLAN may not be configured as the guest VLAN and vice-versa.
The voice VLAN may not be configured as a private VLAN host port.
Command History
Description updated in 6.3.0.5 release. Syntax updated in release 6.5.1.0.
Example
This example configures an interface to use VLAN 100 as the voice VLAN
and sends LLDP configuration in the Network Policy TLV to the phone to
assign VLAN 100 to 802.1p priority 5. The data priority is trusted by default.
console(config)#vlan 100
console(config-vlan100)#interface gi1/0/1
console(config-if-Gi1/0/1)#voice vlan 100
console(config-if-Gi1/0/1)#voice vlan dot1p 5
In this example, the IP phone will use its own configuration (no policy is sent
via LLDP).
console(config-if-Gi1/0/1)#voice vlan none
console(config-if-Gi1/0/1)#voice vlan untagged
This example shows the configuration for a switch with a directly connected
IP phone that is not 802.1X capable. All devices will have access to the voice
VLAN regardless of the authentication state of the data device.
1
Create the voice VLAN.
console#configure
console(config)#vlan 25
console(config-vlan25)#exit
2
Enable the Voice VLAN feature on the switch.
console(config)#switchport voice vlan