PurposeCommand or Action
Returnsto privileged EXEC mode.end
Example:
Switch(config-if)# end
Step 4
Verifiesyour entries.
showinterfaces interface-id switchport
Example:
Switch# show interfaces
Step 5
gigabitethernet1/0/1 switchport
(Optional)Saves your entriesin the configurationfile.copyrunning-config startup-config
Example:
Switch# copy running-config startup-config
Step 6
Related Topics
CiscoIP Phone DataTraffic, on page 151
Example:Configuring a Port Connected to an IPPhone Notto ChangeFrame Priority, on page 158
Monitoring Voice VLAN
Todisplay voice VLAN configuration for an interface, use the show interfaces interface-id switchport
privilegedEXEC command.
Configuration Examples for Voice VLANs

Example: Configuring Cisco IP Phone Voice Traffic

Thisexample shows how to configure a port connected to a Cisco IP Phone to use the CoS value to classify
incomingtraffic and to accept voice and data priority traffic tagged with VLAN ID 0:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gigabitethernet1/0/1
Switch(config-if)# mls qos trust cos
Switch(config-if)# switchport voice vlan dot1p
Switch(config-if)# end
Toreturn the port to its default setting, use the no switchport voice vlan interface configuration command.
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29440-01 157
Configuring Voice VLANs
Monitoring Voice VLAN