interface FastEthernet X/X
switchport mode access
switchport access vlan Y
switchport voice vlan X
auto qos voip cisco-phone
spanning-tree portfast
spannings-tree bpdugard enable
When a IP Phone is connected on the port a trunk is created placcing the IP Phone in the Voice VLAN and the PC in the data VLAN (Native VLAN). When you connect a PC to the switchport he will end in the data VLAN (Native VLAN).
If I'm not mistraking Cisco uses CDP to detect that it is an IP Phone and to setup a trunk between the switchport and the IP Phone.
If you the port was a trunk then the Native VLAN would by default be VLAN 1. However you are configuring the port as an Access Port (switch mode access) so the commands - 'switchport access vlan 11' and 'switchport voice vlan 12' are applied. If you hard-coded the port as a trunk 'switchport mode trunk' then the Access VLAN or Native VLAN (whichever but it is the Un-Tagged VLAN) would by default be VLAN 1.
For consistency you can apply the following on Voice/Data Access ports:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.