B Consolidated Config Guide 3850 Chapter 0100011
B Consolidated Config Guide 3850 Chapter 0100011
Related Topics
Feature History and Information for Troubleshooting Software Configuration
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 1
Configuring Voice VLANs
Restrictions for Voice VLANs
Note Trunk ports can carry any number of voice VLANs, similar to regular VLANs. The
configuration of voice VLANs is not supported on trunk ports.
• Before you enable voice VLAN, we recommend that you enable QoS on the switch by entering the mls
qos global configuration command and configure the port trust state to trust by entering the mls qos
trust cos interface configuration command. If you use the auto-QoS feature, these settings are
automatically configured.
• Before you enable voice VLAN, enable QoS on the switch by entering the trust device cisco-phone
interface configuration command. If you use the auto QoS feature, these settings are automatically
configured.
• You must enable CDP on the switch port connected to the Cisco IP Phone to send the configuration to
the phone. (CDP is globally enabled by default on all switch interfaces.)
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
2 OL-29322-01
Configuring Voice VLANs
Cisco IP Phone Voice Traffic
Note In all configurations, the voice traffic carries a Layer 3 IP precedence value (the default is 5 for voice
traffic and 3 for voice control traffic).
Related Topics
Configuring Cisco IP Phone Voice Traffic, on page 5
Monitoring Voice VLAN, on page 10
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 3
Configuring Voice VLANs
Voice VLAN Configuration Guidelines
• In untrusted mode, all traffic in IEEE 802.1Q or IEEE 802.1p frames received through the access port
on the Cisco IP Phone receive a configured Layer 2 CoS value. The default Layer 2 CoS value is 0.
Untrusted mode is the default.
Note Untagged traffic from the device attached to the Cisco IP Phone passes through the phone unchanged,
regardless of the trust state of the access port on the phone.
Related Topics
Configuring the Priority of Incoming Data Frames, on page 8
Monitoring Voice VLAN, on page 10
• The Cisco IP Phone and a device attached to the phone cannot communicate if they are in the same
VLAN and subnet but use different frame types because traffic in the same subnet is not routed (routing
would eliminate the frame type difference).
• Voice VLAN ports can also be these port types:
◦Dynamic access port.
◦IEEE 802.1x authenticated port.
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
4 OL-29322-01
Configuring Voice VLANs
How to Configure Voice VLAN
Note If you enable IEEE 802.1x on an access port on which a voice VLAN is configured and
to which a Cisco IP Phone is connected, the phone loses connectivity to the switch for
up to 30 seconds.
◦Protected port.
◦A source or destination port for a SPAN or RSPAN session.
◦Secure port.
Note When you enable port security on an interface that is also configured with a voice VLAN,
you must set the maximum allowed secure addresses on the port to two plus the maximum
number of secure addresses allowed on the access VLAN. When the port is connected
to a Cisco IP Phone, the phone requires up to two MAC addresses. The phone address
is learned on the voice VLAN and might also be learned on the access VLAN. Connecting
a PC to the phone requires additional MAC addresses.
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 5
Configuring Voice VLANs
Configuring Cisco IP Phone Voice Traffic
SUMMARY STEPS
1. configure terminal
2. interface interface-id
3. mls qos trust cos
4. trust device cisco-phone
5. switchport voice vlan {vlan-id | dot1p | none | untagged}
6. switchport voice {detect cisco-phone [full-duplex] }
7. end
8. Use one of the following:
• show interfaces interface-id switchport
• show running-config interface interface-id
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 interface interface-id Specifies the interface connected to the phone, and enters interface
configuration mode.
Example:
Switch(config)# interface
gigabitethernet1/0/1
Step 3 mls qos trust cos Configures the interface to classify incoming traffic packets by using
the packet CoS value. For untagged packets, the port default CoS value
Example: is used.
Switch(config-if)# mls qos trust cos Note Before configuring the port trust state, you must first globally
enable QoS by using the mls qos global configuration
command.
Step 4 trust device cisco-phone Configures the interface to trust incoming traffic packets for the Cisco
IP phone.
Example:
Switch(config-if)# trust-device
cisco-phone
Step 5 switchport voice vlan {vlan-id | dot1p | none | Configures the voice VLAN.
untagged}
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
6 OL-29322-01
Configuring Voice VLANs
Configuring Cisco IP Phone Voice Traffic
Step 6 switchport voice {detect cisco-phone Configures how the Cisco IP Phone carries voice traffic:
[full-duplex] }
• detect—Configures the interface to detect and recognize a Cisco
IP Phone.
Example:
• cisco-phone—When you initially enter the switchport voice
Switch(config-if)# switchport voice
detect cisco-phone full-duplex detect command, this is the only allowed option. The default is
no switchport voice detect cisco-phone [full-duplex].
• full-duplex—(Optional) Configures the switch to only accept a
full-duplex Cisco IP Phone.
Example:
Switch(config-if)# end
Step 8 Use one of the following: Verifies your voice VLAN entries or your QoS and voice VLAN
entries.
• show interfaces interface-id switchport
• show running-config interface
interface-id
Example:
Switch# show interfaces
gigabitethernet1/0/1 switchport
or
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 7
Configuring Voice VLANs
Configuring the Priority of Incoming Data Frames
Example:
Switch# copy running-config
startup-config
Related Topics
Cisco IP Phone Voice Traffic, on page 3
Monitoring Voice VLAN, on page 10
SUMMARY STEPS
1. configure terminal
2. interface interface-id
3. switchport priority extend {cos value | trust}
4. end
5. show interfaces interface-id switchport
6. copy running-config startup-config
DETAILED STEPS
Example:
Switch# configure terminal
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
8 OL-29322-01
Configuring Voice VLANs
Configuring the Priority of Incoming Data Frames
Step 3 switchport priority extend {cos value | trust} Sets the priority of data traffic received from the Cisco IP Phone
access port:
Example: • cos value—Configures the phone to override the priority
Switch(config-if)# switchport priority received from the PC or the attached device with the
extend trust specified CoS value. The value is a number from 0 to 7,
with 7 as the highest priority. The default priority is cos
0.
• trust—Configures the phone access port to trust the
priority received from the PC or the attached device.
Example:
Switch(config-if)# end
Example:
Switch# show interfaces gigabitethernet1/0/1
switchport
Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Switch# copy running-config startup-config
Related Topics
Cisco IP Phone Data Traffic, on page 3
Monitoring Voice VLAN, on page 10
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 9
Configuring Voice VLANs
Monitoring Voice VLAN
Related Topics
Configuring Cisco IP Phone Voice Traffic, on page 5
Cisco IP Phone Voice Traffic, on page 3
Configuring the Priority of Incoming Data Frames, on page 8
Cisco IP Phone Data Traffic, on page 3
Where to Go Next
After configuring voice VLANs, you can configure the following:
• VLANs
• VLAN Trunking
• VLAN Membership Policy Server (VMPS)
• VTP
Additional References
Related Documents
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
10 OL-29322-01
Configuring Voice VLANs
Additional References
Standard/RFC Title
RFC 1573 Evolution of the Interfaces Group
of MIB-II
MIBs
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 11
Configuring Voice VLANs
Feature Information for Voice VLAN
Technical Assistance
Description Link
The Cisco Support website provides extensive online http://www.cisco.com/support
resources, including documentation and tools for
troubleshooting and resolving technical issues with
Cisco products and technologies.
To receive security and technical information about
your products, you can subscribe to various services,
such as the Product Alert Tool (accessed from Field
Notices), the Cisco Technical Services Newsletter,
and Really Simple Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website
requires a Cisco.com user ID and password.
Voice VLAN Cisco IOS XE 3.2SE The voice VLAN feature enables access ports to carry IP
functionality voice traffic from an IP phone.
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
12 OL-29322-01