Its a good idea to keep vlans separate for phones and Pcs, especially if you are daisy chaining PCs to the phones. For a smaller network, you will need,
a. two vlans - one data vlan, one auxiliary vlan (voice vlan)
b. two subnets (one for data, one for phones)
For a IOS based switch,
here is a sample,
vlan 100
name Data
vlan 200
name Voice
int vlan 100 (if l3 switch)
ip add 10.10.10.1 255.255.255.0
int vlan 200
ip add 10.10.20.1 255.255.255.0
ip dhcp pool Phones
network 10.10.20.0/24
default-router 10.10.20.1
option 150 ip
ip dhcp pool Data
network 10.10.10.0/24
default-router 10.10.10.1
individual port configuration -
int fa0/1
switchport mode access
switchport access vlan 100
switchport voice vlan 200
spanning-tree portfast
You can apply the same config to rest of the ports using the range command.
You should also enable QOS on the switch. QOS configs are different for different switches, so that topic would be something that I would recommend you to read the following link..its a lot to read..
http://www.cisco.com/en/US/products/hw/switches/ps5023/products_configuration_guide_chapter09186a00801cdedc.html#1162303
HTH
Sankar
PS: please remember to rate posts~
Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus