I'm trying to understand how a switch handles two vlan's on the same port, in the case of a voice vlan + access vlan.
If you connect an ip phone to a switch and then a laptop to the switch at the back of that ip phone, and on your cisco switch configure the interface to which the ip phone is connected as a voice vlan x + access vlan x, how does the switch know which vlan the data is coming from?
How does the switch know whether the data it just received from said interface, came from the voice vlan or the access vlan?
Thank you for all your answers