C
HAPTER
36
| VLAN Commands
Configuring Voice VLANs
– 1164 –
â—† Setting a mask of FF-FF-FF-00-00-00 identifies all devices with the
same OUI (the first three octets). Other masks restrict the MAC address
range. Setting FF-FF-FF-FF-FF-FF specifies a single MAC address.
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)#