Users Guide

Layer 2 Switching Commands 898
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
3
Configure port 10 to be in access mode. The data VLAN ID is 1 and uses
untagged packets.
console(config)#interface gi1/0/10
console(config-if-Gi1/0/10)#switchport mode access
4
Enable port-based 802.1X authentication on the port for the data traffic.
console(config-if-Gi1/0/10)#authentication port-control auto