I have a question about VLAN tagging
I have configured 3 VLAN's on a Dreytek Vigor 2860 router with the following tags. (I do not need support on this router specifically but thought i would mention the model.)
We are using switches that support the IEEE 802.1Q Standard which i understand we need for VLAN tag support.
10 (Data for staff - accessing from computers on ethernet and wireless)
20 (Data for public (not staff) - wireless connections only)
30 (Voice - VOIP)
I have also configured the default gateways and ip ranges for each VLAN
10 - 192.168.10.X
20 - 192.168.20.X
30 - 192.168.30.X
How does the router know which VLAN should be used for allocating an IP to a device. For a computer and Mitel phone for example. I am aware that with the exception of hypervisors, other devices such as computers, laptops and phones, are not VLAN aware. I have read about the TPID -TAG Protocol Identifier and the first 4 bytes are made of the VLAN TAG, however do not understand how the packets are identified for VLAN allocation unless the packet is marked or identified based other characteristics.
In other words i just want to understand how packets are distinguished and subsequently marked with a specific VLAN tag.
Staff connecting via ethernet and WIFI on a STAFF SSID
Residents connecting via WIFI on Residents SSID