CLI Reference Guide-R04

Table Of Contents
Chapter 22
| VLAN Commands
Configuring Voice VLANs
– 622 –
Example
The following example adds a MAC OUI to the OUI Telephony list.
Console(config)#voice vlan mac-address 00-12-34-56-78-90 mask ff-ff-ff-00-00-
00 description "a new phone"
Console(config)#
switchport voice vlan This command specifies the Voice VLAN mode for ports. Use the no form to disable
the Voice VLAN feature on the port.
Syntax
switchport voice vlan {manual | auto}
no switchport voice vlan
manual - The Voice VLAN feature is enabled on the port, but the port must
be manually added to the Voice VLAN.
auto - The port will be added as a tagged member to the Voice VLAN when
VoIP traffic is detected on the port.
Default Setting
Disabled
Command Mode
Interface Configuration
Command Usage
When auto is selected, you must select the method to use for detecting VoIP
traffic, either OUI or 802.1AB (LLDP) using the switchport voice vlan rule
command. When OUI is selected, be sure to configure the MAC address ranges
in the Telephony OUI list using the voice vlan mac-address command.
All ports are set to VLAN hybrid mode by default. Prior to enabling VoIP for a
port (by setting the VoIP mode to Auto or Manual as described below), ensure
that VLAN membership is not set to access mode using the switchport mode
command.
Example
The following example sets port 1 to Voice VLAN auto mode.
Console(config)#interface ethernet 1/1
Console(config-if)#switchport voice vlan auto
Console(config-if)#