VLANs (Virtual Local Area Networks), segregate traffic within a network.
They allow a single physical Ethernet network to appear to be multiple logical networks.
Benefits for using VLANs include:
While VLAN's are effective for separating network segments and limiting broadcast traffic, it is often a requirement for subnets separated by VLAN's to be able to communicate. This can be accomplished only through a Layer 3 enabled device that can route between the VLAN's. Even if both VLAN's exist on a device, their traffic will be segregated unless mediated by a layer 3 routing device.
VLAN enabled ports are generally categorized in one of two ways, tagged or untagged.
Unifi, usually by default, have all switch ports able to consume both tagged and untagged traffic, but this can be modified. This is known as trunking, i.e. to have a specific port enabled for VLAN tagging, and the other ports for general access.
VLAN | Virtual Local Area Network, logical identifier for isolating a network. |
Trunk | A port enabled for VLAN tagging. |
Access | A port that does not tag and only accepts a single VLAN. |
Encapsulation | The process of modifying frames of data to include additional information. |
802.1Q | The most common encapsulation method for VLAN tagging. |
Native VLAN | The VLAN associated with all untagged traffic on a trunk. |
Ubiquiti always uses VLAN 1 as the untagged native VLAN.
NOTE: There are many different network types that can be created:
Any of these networks can be allocated to a VLAN.