one method to configure the switch port to support voice is:
(config-if)#switchport mode access
(config-if)#switchport voice vlan dot1p
(config-if)#switchport access vlan 20
refering cisco documents the command switchport voice vlan dot1p
The command voice vlan dot1p, Instructs the switch port to use 802. priority tagging for voice traffic and to use the default native VLAN (VLAN 0) to carry all traffic. By default, the Cisco IP phone forwards the voice traffic with an 802. priority of 5.
Can I say that the PC connected to this port will take IP address form vlan 20 and the IP phone will take the IP from native valn with priority 5?
Thank you for your reply,
I knew that why we are using voice vlan and data vlan and I knew the QoS and the phone can mark its traffic, I am working in Voice field. I post this in R&S forum because All waht I need the behaviour of the switch using this command:
once I configure the switch like below:
switchportvoice vlan dot1p
switchportaccess vlan 25
What is the VLAN assigned for IP phone and the PC that is connected to the switch?
In the previous configuration the Data Vlan should be VLAN 25 to be more accurate : VLAN ID = 25 and Priority = 0.
Now what about IP phone? if I checked the IP address of the phone it should be:
VLAN ID = 0 (Native Vlan) and Priority = 5 ( this is what I think and this is what exactly I need ?)
You are right PC will be in data vlan 25 and ip phone traffic will be native vlan .
Hope to Help !!