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
- ✅ Scalabilità: 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
- routing 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
| Tipo | Descrizione |
|---|---|
| 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
Scenario:
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 routing Inter-VLAN se i dispositivi provenienti da diverse VLAN devono comunicare.
🌐 Routing Inter-VLAN
Poiché le VLAN sono domini di broadcast separati, i dispositivi in VLAN diverse non possono comunicare a meno che un router o uno switch Layer 3 non instradi il traffico tra di essi.
Routing Inter-VLAN tramite Router-on-a-Stick
interfaccia FastEthernet0/0.10
encapsulation dot1Q 10
ip address [IP_ADDRESS] [IP_ADDRESS]
interfaccia FastEthernet0/0.20
encapsulation dot1Q 20
ip address [IP_ADDRESS] [IP_ADDRESS]
📌 Ogni sotto-interfaccia gestisce una VLAN.
VLAN Nativa – Cosa dovresti sapere
Il la VLAN nativa è la VLAN non taggata su una porta trunk.
- Di default, è la VLAN 1
- Entrambi i lati del trunk dovrebbero utilizzare la stessa VLAN nativa
- Best practice di sicurezza: cambia la VLAN nativa con una diversa VLAN non utilizzata
Switch(config-if)# switchport trunk native vlan 99
VLAN Voce
Un telefono IP Cisco con un PC collegato alla sua porta posteriore necessita di due VLAN su una singola porta di accesso fisica: una VLAN dati per il PC e una VLAN voce separata per il traffico del telefono, taggata anche se la porta è tecnicamente una porta di accesso. Questo si configura con un comando dedicato, non con una seconda VLAN di accesso:
Switch(config-if)# switchport access vlan 10
Switch(config-if)# switchport voice vlan 150
La VLAN voce mantiene il traffico telefonico (che è sensibile alla latenza) logicamente separato dal traffico dati del PC sullo stesso cavo, senza la necessità di una seconda porta fisica o di un secondo cavo sulla scrivania. Questo è un argomento reale e comune dell'esame CCNA 200-301 e una configurazione del mondo reale in quasi ogni implementazione d'ufficio che utilizza telefoni IP Cisco.
Caso d'uso VLAN nella vita reale
Esempio di rete ospedaliera:
- VLAN 10: Medici
- VLAN 20: Amministrazione
- VLAN 30: Monitoraggio pazienti
- VLAN 40: Sorveglianza
Ogni gruppo è separato logicamente, garantendo privacy e prestazioni senza dover acquistare switch aggiuntivi.
✅ Spiegazione del Routing per CCNA
🌐 Guida alla configurazione VLAN Cisco
🌐 VLAN Tagging 802.1Q – Panoramica IEEE
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 routing 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.
Se preferisci che qualcuno ti guidi passo passo, o hai bisogno di un laboratorio Packet Tracer specifico completato e spiegato anziché scoperto da solo, vedi il Lezioni CCNA e Packet Tracer pagina su come funziona.

