We have multiple interfaces currently configured with the below on our Cisco 3750x switch.
interface GigabitEthernet1/0/21 switchport access vlan 4 switchport trunk encapsulation dot1q switchport mode access switchport voice vlan 3 spanning-tree portfast
Connected to these interfaces is a Shoretel phone and there is a port from the Shoretel phone that connects to a laptop or desktop. Our workstation VLAN is VLAN 4 and our Voice VLAN is VLAN 3 as you can see above. We are running DHCP pools within our switch which has the option 156 associated so that the phone will know what VLAN to pickup.
ip dhcp pool VOICE network 10.7.8.0 255.255.248.0 option 4 ip 192.168.32.215 default-router 10.7.8.1 dns-server 10.7.0.101 192.168.30.205 domain-name --omitted-- option 156 ascii "ftpservers=10.7.8.9,layer2tagging=1,vlanid=3" lease 0 1 !
What is the point of
switchport trunk encapsulation dot1q within the interface configuration?
spanning-tree portfast really needed? We are not running spanning tree on our switch.
Why separate access and voice vlan? What is the purpose?