Cisco Catalyst – Auto Voice VLAN on Catalyst 2960X

ciscocisco-catalystswitchvlanvoice

I am looking to reproduce a configuration that I have quite easily achieved on the Cisco Small Business Series SG500 family of switches. The configuration is for Auto Voice VLAN, triggered by CDP and/or LLDP, which results in dynamic interface configuration for a compatible device (i.e. Cisco phone) such that said interface sets the appropriate voice VLAN, native VLAN, and DSCP and CoS Values (46 and 5 respectively) are set for traffic on the Voice VLAN.

The resulting behavior is a compatible phone can be plugged into a port and will operate in the Voice VLAN while a computer connected to the phones switch port will enter the native VLAN. Again, voice traffic has DSCP/CoS values set as mentioned above.

I am comfortable with basic configuration of the Catalyst and have a CCNA in Routing and Switching…which does not cover these topics. From my research I gather that there are at least two separate components to achieving this configuration:

  1. Configuration of the Voice VLAN: http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/vlan/configuration_guide/b_vlan_152ex_2960-x_cg/b_vlan_152ex_2960-x_cg_chapter_0110.html

  2. Configuration of Auto Smartport: http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/autosmartports/configuration_guide/iosaspcg2960X/configure.html

By coupling these concepts together, should I be able to craft a configuration that achieves my objectives?

Is there anything else I should consider?

Best Answer

This is done all the time. Under a switch interface, you simply define a voice VLAN with the switchport voice vlan command. Something like this:

interface range GigabitEthernet1/0/1
 switchport access vlan 10
 switchport voice vlan 110
 switchport mode access
 no shutdown
!

The switchport access vlan command defines the data VLAN, and the switchport voice vlan command defines the voice VLAN. With Cisco phones, CDP will negotiate a trunk (the phone acts as a switch), or if there is no phone, then the interfaces acts as an access interface. You can enable LLDP on the interface for non-Cisco phones:

lldp run
!
interface range GigabitEthernet1/0/1
 switchport access vlan 10
 switchport voice vlan 110
 switchport mode access
 lldp transmit
 lldp receive
 no shutdown
!