What is a VLAN?
In this lesson, we will talk about one of the key lessons in networking, especially in switching. We will explain VLAN definition and we will learn what is a VLAN with examples. In the following lessons, we will learn the details of VLANs and we will practice with VLAN Configuration Examples .
If we do a simple VLAN definition, VLANs(Virtual Local Area Networks) are the Logical Virtual Networks that you can seperate big networks into smaller networks. This can be done for reducing broadcast traffic, network performance improvement, security purpose or to seperate different departments each other and for network flexibility.
In a company, different Virtual LANs can be used for different departments. Think about that these departments are IT, HR and Finance. In a single company LAN, with Virtual LANs, each of these department networks become separate networks.
VLANs are Logical networks. In the first place they are defined on the switches and then the ports are assigned to them. By doing this, VLANs members ports appear.
We will learn the key points of VLANs, but firstly, let’s check two important domain terms used in networks.
Generally fistly two terms are learned by new engineers about computer networks. These terms are Collision Domain and Broadcast Domain. It can be good to define these terms again. Because in the VLAN lesson, these terms are ciritically important.
Collision domain : A single physical line that a colision can occur. Example: Hubs have one collision domain and only one connected node can make a transfer at any time. Switches collision domain number is like their port number by default.
Broadcast domain : A logical division of networks that all nodes can reach eachother at data link layer(layer 2). Example: Switches are one broadcast domain. Because without any restriction, if one node sends something from one port, all other ports receive it. Routers’ each port is one broadcast domain.
VLANs What is it?
Let’s return our main lesson again. VLANs (Virtual Local Area Networks) help you to build new child broadcast domains in one switch or in one broadcast domain. After Configuring VLANs, each VLAN become a single broadcast domain and without routing, there is no communication between Virtual LANs.
There are also collision domains in the Virtual LANs again. Each VLAN has collision domain as the number of their assigned ports.
Here, VLANs (Virtual Local Area Networks) can be thinked like small switches in the main switch.
On Cisco switches, all the ports are the member of VLAN 1 by default. So if no VLAN Configuration done, all the ports are in the same VLAN, VLAN 1. And they are in the same broadcast domain as mentioned above.
What is Native VLAN?
By default Native VLAN is VLAN 1. By default, all untagged frames are member of it. This Native VLAN can be changed by a trunk port. For example, think about that, one trunk’s Native VLAN is VLAN 5. Here, all the untagged and VLAN 5 tagged frames are belong to that VLAN 5. Here the important point is, each end of the connection must be configured with the same configuration.
ISL trunks does not support the Native VLAN and untagged frames. But dot1.q trunks supports.
On the other hand, Native VLAN is a security risk. To avoid this risk, Native VLAN can be assigned to an unused port or disabled port. You can also make the trunk ports to tag the Native VLAN.
In this lesson, we have talked about VLAN definition, what is a VLAN simply and Native VLAN. Beside, we have remembered Collision and Broadcast domains. In the next lessons, we will learn more on VLANs and we will learn How to Configure VLANs.
To learn mode about VLAN(Vİrtual Local Area Network)s, continue with the following posts ;)
Virtual LAN – Part 1
Virtual LAN – Part 2 (VLAN Assignments and VLAN Port Types)
Virtual LAN – Part 3 (VLAN Frame Tagging Protocols, ISL and Dot1.q)
Virtual LAN – Part 4 (How to Configure Cisco VLANs)
Virtual LAN – Part 5 (Packet Tracer VLAN Configuration Example)
VLAN Configuration on Huawei Switches