SUMMARY STEPS
1. configureterminal
2. interfaceinterface-id
3. mlsqos trust cos
4. switchportvoice vlan {vlan-id |dot1p |none |untagged }
5. end
6. Useone of thefollowing:
showinterfaces interface-id switchport
showrunning-config interface interface-id
7. copyrunning-config startup-config
DETAILED STEPS
PurposeCommand or Action
Entersthe global configurationmode.configureterminal
Example:
Switch# configure terminal
Step 1
Specifiesthe interface connected to the phone, and enters interface
configurationmode.
interfaceinterface-id
Example:
Switch(config)# interface
Step 2
gigabitethernet1/0/1
Configuresthe interfaceto classify incoming traffic packets by using
thepacket CoS value. For untagged packets, the port default CoS value
isused.
mlsqos trust cos
Example:
Switch(config-if)# mls qos trust cos
Step 3
Beforeconfiguring the porttrust state, you mustfirst globally
enableQoS by using the mls qos global configuration command.
Note
Configureshow theCisco IP Phone carriesvoice traffic:
switchportvoice vlan {vlan-id |dot1p |none
|untagged}
Step 4
vlan-idConfiguresthe phone to forward all voice traffic through
thespecified VLAN. By default, the Cisco IP Phone forwards the
Example:
Switch(config-if)# switchport voice vlan
voicetraffic with an IEEE 802.1Q priority of 5. Valid VLAN IDs
are1 to 4094.
125 dot1pConfiguresthe switch toaccept voice and dataIEEE
802.1ppriority frames tagged with VLAN ID 0 (the native VLAN).
Bydefault, the switchdrops all voice and datatraffic tagged with
VLAN0. If configured for 802.1p the Cisco IP Phone forwards
thetraffic with an IEEE 802.1p priority of 5.
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
154 OL-29440-01
Configuring Voice VLANs
Configuring Cisco IP Phone Voice Traffic