VLANs Networking CCNA Guide: Why Use VLANs?
This VLANs networking CCNA guide starts with the problem VLANs actually solve.
VLANs (Virtual Local Area Networks) let you segment a physical network into multiple logical networks. Instead of buying more switches, you can use VLANs to:
- Improve security
- Organize departments
- Reduce unnecessary traffic
Think of VLANs as virtual walls inside a physical network.
What Is a VLAN?
A VLAN is a logical group of devices on the same network, even if they aren’t physically connected to the same switch or port.
For example:
- VLAN 10 – Accounting
- VLAN 20 – HR
- VLAN 30 – IT
Each VLAN acts like its own subnet.
Why Are VLANs Important?
Benefits of VLANs:
- ✅ Security: Isolate sensitive devices (e.g., HR, Finance)
- ✅ Performance: Reduce broadcast traffic
- ✅ Évolutivité: Add/remove users without rewiring
- ✅ Simplified management: Logical grouping over physical layout
VLANs in the CCNA Exam
VLANs are core topics in CCNA Switching. You must understand:
- VLAN creation and assignment
- VLAN trunking
- routage Inter-VLAN
- Default VLANs and native VLANs
- VLAN IDs and tagging (802.1Q)
How to Configure a VLAN (Cisco CLI)
Let’s say you want to create VLAN 10 and assign it to a port.
Switch> enable
Switch# configure terminal
Switch(config)# vlan 10
Switch(config-vlan)# name Sales
Switch(config)# interface fastethernet 0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
✅ You just created VLAN 10 and assigned it to port Fa0/1.
VLAN Access vs Trunk Ports
| Type | Description |
|---|---|
| Access Port | Connects to end devices, carries traffic for one VLAN |
| Trunk Port | Connects to another switch, carries multiple VLANs |
Trunk ports tag traffic with VLAN IDs using the 802.1Q protocol.
Verifying VLANs on a Switch
Configuring a VLAN and confirming it actually works are two different skills, and the CCNA exam tests both. These three commands answer almost every “why isn’t this VLAN working” question:
Switch# show vlan brief
Switch# show interfaces trunk
Switch# show interfaces fastethernet 0/1 switchport
show vlan brief confirms the VLAN exists and which ports are assigned to it – a surprisingly common exam trap is a VLAN that was created but never actually assigned to the port you expect. show interfaces trunk confirms a trunk link is actually trunking and which VLANs are allowed across it – a trunk port that looks correctly configured but is not in the allowed VLAN list will silently drop that VLAN’s traffic. show interfaces ... switchport on a single port shows its exact mode (access or trunk), its assigned VLAN, and its native VLAN in one place.
VTP: A Word of Caution
VLAN Trunking Protocol (VTP) synchronizes VLAN databases across multiple switches automatically, which sounds convenient until a switch with a higher VTP revision number joins the network and silently overwrites every other switch’s VLAN database – including deleting VLANs that were never meant to be removed. This is a real, well-documented outage pattern, not a theoretical risk, and it is exactly why most production networks either run VTP in transparent mode (the switch keeps its own VLAN database and does not participate in synchronization) or avoid VTP entirely in favor of manually configuring VLANs on each switch:
Switch(config)# vtp mode transparent
For the CCNA exam, know how VTP works and what the three modes (server, client, transparent) do. For a real network, transparent mode or manual VLAN management is the safer default.
CCNA Packet Tracer Lab – VLANs in Action
Scénario :
You have two switches and two departments – Sales and HR.
- VLAN 10 – Sales (PC0, PC1)
- VLAN 20 – HR (PC2, PC3)
Steps:
- Create VLANs on both switches
- Assign access ports
- Configure a trunk link between switches
- Verify connectivity (same VLAN can ping, different VLANs can’t)
🧠 Tip: You’ll need routage Inter-VLAN if devices from different VLANs need to communicate.
🌐 Inter-VLAN Routing
Since VLANs are separate broadcast domains, devices in different VLANs can’t talk unless a router or Layer 3 switch routes traffic between them.
Inter-VLAN Routing via Router-on-a-Stick
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
📌 Each sub-interface handles one VLAN.
Native VLAN – What You Should Know
Le native VLAN is the untagged VLAN on a trunk port.
- By default, it’s VLAN 1
- Both sides of the trunk should use the same native VLAN
- Security best practice: change the native VLAN to a different unused VLAN
Switch(config-if)# switchport trunk native vlan 99
Voice VLANs
A Cisco IP phone with a PC plugged into its back port needs two VLANs on one physical access port – a data VLAN for the PC and a separate voice VLAN for the phone’s own traffic, tagged even though the port is technically an access port. This is configured with a dedicated command, not a second access VLAN:
Switch(config-if)# switchport access vlan 10
Switch(config-if)# switchport voice vlan 150
The voice VLAN keeps phone traffic (which is latency-sensitive) logically separated from PC data traffic on the same cable run, without needing a second physical port or a second cable to the desk. This is a real, common CCNA 200-301 exam topic and a real-world configuration on almost every office deployment that uses Cisco IP phones.
Real-Life VLAN Use Case
Hospital Network Example:
- VLAN 10: Doctors
- VLAN 20: Admin
- VLAN 30: Patient Monitoring
- VLAN 40: Surveillance
Each group is logically separated, ensuring privacy and performance without buying extra switches.
🌐 Guide de configuration VLAN Cisco
🌐 802.1Q VLAN Tagging – IEEE Overview
FAQ – VLANs
What is a VLAN in simple terms?
A VLAN is a logical group of network devices that act as if they’re on the same network, even if physically separated.
Why are VLANs used?
To segment networks for better performance, security, and management.
What is VLAN tagging?
It’s the process of adding a VLAN ID to a frame (802.1Q) so trunk links can identify which VLAN the data belongs to.
How do VLANs communicate?
They need routage Inter-VLAN, typically done by a router or Layer 3 switch.
What is the default VLAN?
It’s VLAN 1, assigned to all ports by default on Cisco switches. It’s best practice to move devices off VLAN 1 for security.
Si vous préférez que quelqu'un vous guide pas à pas, ou si vous avez besoin d'un laboratoire Packet Tracer spécifique réalisé et expliqué plutôt que de le résoudre seul, consultez le Cours CCNA & Packet Tracer page expliquant comment cela fonctionne.

