28-3
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter28 Configuring Voice Interfaces
Configuring Voice Ports for Voice and Data Traffic
To configure a port to receive voice and data traffic from a Cisco IP Phone on different VLANs, perform
this task:
In the following example, VLAN 1 carries data traffic, and VLAN2 carries voice traffic. In this
configuration, you must connect all Cisco IP phones and other voice-related devices to sw itch ports that
belong to VLAN 2.
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface fastEthernet 3/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport voice vlan 2
Switch(config-if)# switchport access vlan 3
Switch(config-if)# end
Switch# show interfaces fastEthernet 3/1 switchport
Name: Fa3/1
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 3 (VLAN0003)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: 2 (VLAN0002)
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Command Purpose
Step1 Switch# configure terminal Enters configuration mode.
Step2 Switch(config)# interface {fastethernet |
gigabitethernet}
slot
/
port
Specifies the interface to configure.
Step3 Switch(config-if)# switchport mode access Configures the interface as an access port.
The voice VLAN is active only on access ports.
Step4 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.
Step5 Switch(config-if)# switchport access vlan
data_vlan_num
Configures the access VLAN (the data VLAN) on the port
Step6 Switch(config-if)# end Returns to privileged EXEC mode.
Step7 Switch# show interface {fastethernet |
gigabitethernet}
slot/port
switchport
Verifies the configuration.