30-3
Software Configuration Guide—Release 12.2(25)EW
OL-6696-01
Chapter 30 Configuring Voice Interfaces
Overriding the CoS Priority of Incoming Frames
To configure a port to receive voice and data from a Cisco IP Phone on different VLANs, perform this
task:
In the following example, VLAN 1 carries data traffic, and VLAN 2 carries voice traffic. In this
configuration, you must connect all Cisco IP phones and other voice-related devices to switch ports that
belong to VLAN 2.
Switch# configure terminal
Switch(config)# interface fastethernet 2/5
SSwitch(config-if)# switchport voice vlan
2
switchport voice vlan 2
Switch(config-if)# end
Switch# show interface fastethernet 2/5 switchport
show interface fastethernet 2/5 switchport
Name:Fa2/5
Switchport:Enabled
Administrative Mode:dynamic auto
Operational Mode:down
Administrative Trunking Encapsulation:negotiate
Negotiation of Trunking:On
Access Mode VLAN:1 (default)
Trunking Native Mode VLAN:1 (default)
Voice VLAN:2 ((Inactive))
Appliance trust:none
Administrative private-vlan host-association:none
Administrative private-vlan mapping:none
Operational private-vlan:none
Trunking VLANs Enabled:ALL
Pruning VLANs Enabled:2-1001
Switch#
Overriding the CoS Priority of Incoming Frames
A PC or another data device can connect to a Cisco 7960 IP phone port. The PC can generate packets
with an assigned CoS value. You can also use the switch CLI to override the priority of frames arriving
on the phone port from connected devices, and you can set the phone port to accept (trust) the priority
of frames arriving on the port.
Command Purpose
Step 1
Switch# configure terminal
Enters configuration mode.
Step 2
Switch(config)# interface {fastethernet |
gigabitethernet}
slot
/
port
Specifies the interface to configure.
Step 3
Switch(config-if)# switchport voice vlan
vlan_num
Instructs the Cisco IP phone to forward all voice traffic
through a specified VLAN. The Cisco IP phone forwards
the traffic with an 802.1p priority of 5.
Step 4
Switch(config-if)# end
Returns to privileged EXEC mode.
Step 5
Switch# show interface {fastethernet |
gigabitethernet}
slot/port
switchport
Verifies the configuration.