IEEE 802.1Q


IEEE 802.1Q is a protocol that can be used to partition an Ethernet into a number of VLANs. Each frame is tagged with a VID (VLAN ID) to indicate which VLAN it is associated with. Each VLAN behaves as if it were a separate Ethernet.

There are two ways to connect a machine to a switch that carries 802.1Q VLANs:

The advantage of a tagged port is that it allows multiple VLANs to be carried by a single physical bearer. The disadvantage is that the machine in question must support 802.1Q and be configured to use it. Typical practice is to use tagged ports for machines that need to talk to multiple VLANs and untagged ports for everything else.

A VID is an unsigned 12-bit integer in the range 1 to 4094. The first VLAN, with a VID of 1, is the default VLAN to which ports are presumed to belong if they have not been otherwise configured.



See also

Further reading