Have you ever needed to design a network for a building but you wanted to divide this building into departments or floors and separate them?
Have you ever thought about how you can divide a local network into separate segments?
If so, have you considered a specific way to do this?
There are multiple ways to do this like subnetting IP addresses but in my opinion, One of the most efficient ways to do this is by VLANs concepts.
In most professional infrastructure you actually need the subnetting and VLANs together , because VLANs works as a LAYER 2 segmentation while subnetting is considered as Layer 3 seperation.
To understand how VLANs works you must understand LAN first ,
LAN stands for Local Area Network , It is a network connecting end devices like computers or servers with each other within a limited geographical area by specific device like switches , hubs or routers. On the other hand VLAN stands for Virtual LAN.
VLANs have IDs (e.g. 10, 20, 30), and you can assign descriptive names such as HR, Finance, and IT.
Why every one should use VLANs? The answer is very simple , Calculate the space and money could be costed if I got for every floor it's own switch and connected each floor with it's own LAN , It will absolutely cost a lot of money and space for this. Actually you could add switches in each floor if needed by a method called trunking , OK, It is not only about money... You could think Why not letting every floor to be connected for each other and it's simple and easy , In this case VLANs provide logical isolation that gives more privacy and security for each employee in the building if used the correct security system such as firewalls or ACLs it will perform perfectly.
To demonstrate VLAN-based segmentation, I built a hospital network infrastructure using Cisco Packet Tracer.
The project consists of two scenarios. The first demonstrates how four hospital departments can be logically separated using different VLANs through a central managed switch. The second demonstrates how VLANs can extend across multiple floors using two switches connected through an IEEE 802.1Q trunk link.
You can explore the complete topology, implementation details, and verification commands in my GitHub repository.
Hospital Network Segmentation & Multi-Floor VLAN Implementation
Project Overview
This project demonstrates VLAN-based network segmentation and inter-switch connectivity using Cisco Packet Tracer.
The project consists of two network scenarios designed to demonstrate how VLANs can be used to logically separate departments, reduce broadcast domains, and extend departmental networks across multiple physical locations.
Part 1: Hospital Department Segmentation
A hospital network is divided into four independent departments using VLANs, with all end devices connected to a central managed switch.
Department Distribution
| Department | VLAN ID | Number of Devices |
|---|---|---|
| Administration | 10 | 2 |
| Doctors | 20 | 3 |
| Nursery | 30 | 6 |
| Pharmacy | 40 | 4 |
| Total | 4 VLANs | 15 Devices |
Implementation
- Created four separate VLANs on the central switch.
- Assigned switch ports to their corresponding departmental VLANs.
- Connected all departmental devices through dedicated access ports.
- Implemented logical network segmentation without requiring separate physical switches for each department.
Part 2: Multi-Floor VLAN Implementation Using Trunk Links
This…



Top comments (0)