routing to phone and computer on same port Cisco 3560G
I am new to vlan setups:
We have vlans setup on Cisco Switches/ with 3560 at top all vlans replicated to all switches. Everything is working fine (wireless vlan7, computer vlan1, VOIP vlan 8). I want to setup specific ports to receive both vlan1 and vlan8 traffic but can't seem to get it to work properly. For a port that will have an IP phone and a computer on it I am setting port up like this:
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,8
switchport mode trunk
This doesn't seem to work. Can't ping ip address of phone or communicate with it.
When I set port up as just vlan 8 it works with no problem like this:
switchport access vlan 8
switchport mode access
I however need the port to work with vlan1 and vlan 8 so I can hook computer and phone to same port. Any suggestions or help would be appreciated.