← Back to list

VLANs

Ever wondered how large organizations keep thousands of devices connected without turning their network into a chaotic mess?

Udai Senevirathne · 2026-06-01 17:16 · 0 claps · 3.0 min read
#vlan-configuration #ccna-courses #networking #cisco #cybersecurity
Open on Medium ↗
Wiki topics: 🔒 · Cybersecurity

VLANs

Ever wondered how large organizations keep thousands of devices connected without turning their network into a chaotic mess?

The answer is surprisingly simple: VLANs (Virtual Local Area Networks). Even when every device is plugged into the same switch, VLANs allow networks to behave like multiple separate systems — improving security, performance, and organization at the same time.

A VLAN (Virtual Local Area Network) is a method of dividing a single physical network into multiple logical networks. Even if all devices are connected to the same switch, VLANs make them behave as if they are on completely different networks.

Definition : A VLAN is a way to logically separate devices on the same physical network

Why VLANs Are Used in Real Networks ?

Without VLANs, every device shares the same network space. This creates three major problems as follows :

  • Too much unnecessary network traffic
  • Poor security between departments
  • Difficult network management

Let’s take a real world example for this, Imagine a Company has

  • HR Department → VLAN 10
  • Finance Department → VLAN 20
  • IT Department → VLAN 30

Even though all computers are connected to the same switch:

  • HR cannot directly access Finance
  • Broadcast traffic stays within each VLAN
  • IT can manage systems separately

This creates a clean, secure, and scalable network structure.

Let’s see How VLAN works

Virtual LANs (VLANs) let you partition a single physical network into multiple logical networks. Think of VLANs as separate apartment units inside one building: residents share the same structure but can’t access each other’s rooms unless you explicitly allow it.

What a switch does A network switch maps each physical port to a VLAN ID. That ID determines which logical network a device belongs to.

Example:

  • Ports 1–5 → VLAN 10 (HR)
  • Ports 6–10 → VLAN 20 (IT)

When a device sends a frame, the switch associates that frame with the VLAN for the source port. Only devices in the same VLAN will receive the frame, which keeps traffic isolated. This traffic isolation is called segmentation and improves security, performance, and manageability.

Access ports vs trunk ports

Access port

  • Assigned to a single VLAN only.
  • Intended for end devices like desktops, laptops, and printers.
  • Example: a HR computer plugged into port 3 will be part of VLAN 10.

Trunk port

  • Carries traffic for multiple VLANs simultaneously.
  • Used on links between switches or between a switch and a router/firewall.
  • Trunk links use tagging so frames from different VLANs can share the same physical cable.

VLAN tagging: 802.1Q

When VLAN traffic crosses a trunk link, the switch adds a small identifier — an 802.1Q tag — to each Ethernet frame. That tag contains the VLAN ID so the receiving device knows which logical network the frame belongs to. Tagging prevents VLANs from being mixed up on shared links and ensures frames are delivered to the correct VLAN on the far end.

Practical benefits

  • Security: isolates sensitive departments (e.g., HR) from general users.
  • Performance: reduces broadcast domains and unnecessary traffic.
  • Flexibility: move users between VLANs without rewiring; apply different policies per VLAN.

Wrap-up VLANs are a simple but powerful tool for logically segmenting networks on the same physical infrastructure. Use access ports for end devices, trunk ports for inter-switch links, and 802.1Q tagging to keep VLAN traffic distinct and correctly routed.

Basic Cisco VLAN Configuration

enable
configure terminal

vlan 10
name HR

vlan 20
name IT

interface fastEthernet 0/1
switchport mode access
switchport access vlan 10

VLANs (Virtual Local Area Networks) are a fundamental technology in modern networking that enable organizations to divide a single physical network into multiple logical networks. By segmenting network traffic, VLANs improve security, reduce unnecessary broadcast traffic, and simplify network management. They allow departments, teams, or user groups to operate independently while sharing the same networking infrastructure, making networks more organized, efficient, and scalable.

As businesses and institutions continue to grow, VLANs play a crucial role in maintaining network performance and protecting sensitive data. Whether you’re a networking student, a CCNA candidate, or an IT professional, understanding VLANs is essential for building and managing secure, reliable, and efficient enterprise networks. Ultimately, VLANs demonstrate how intelligent network design can transform a complex network into a well-structured and manageable environment.


메타데이터
post_id
f47dc6f9c8fb
slug
vlans-f47dc6f9c8fb
url
https://medium.com/@udaisenevirathne/vlans-f47dc6f9c8fb
canonical_url
https://medium.com/@udaisenevirathne/vlans-f47dc6f9c8fb
author_url
https://medium.com/@udaisenevirathne
status
ok
fetched_at
2026-06-24 16:30:55