اتصل

VLANs في الشبكات – دليل VLAN سهل لـ CCNA

الصفحة الرئيسية / مدونة

6 دقيقة قراءة
ZILL E ALIيوليو 2, 2025شبكات سيسكو

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?

VLANs networking CCNA guide diagram showing one switch split into VLAN 10 and VLAN 20 broadcast domains
VLANs networking CCNA guide: one physical switch logically segmented into two separate broadcast domains.

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
  • ✅ Scalability: 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
  • توجيه بين 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.

✅ You just created VLAN 10 and assigned it to port Fa0/1.

VLAN Access vs Trunk Ports

النوع الوصف
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

السيناريو:

You have two switches and two departments – Sales and HR.

  • VLAN 10 – Sales (PC0, PC1)
  • VLAN 20 – HR (PC2, PC3)

Steps:

  1. Create VLANs on both switches
  2. Assign access ports
  3. Configure a trunk link between switches
  4. Verify connectivity (same VLAN can ping, different VLANs can’t)

🧠 Tip: You’ll need توجيه بين 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

📌 Each sub-interface handles one VLAN.

Native VLAN – What You Should Know

ال 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

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.

✅ Routing Explained for CCNA

✅ دليل تقسيم الشبكات

🌐 دليل تكوين 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 توجيه بين 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.

إذا كنت تفضّل أن يشرح لك أحدهم ذلك خطوة بخطوة، أو تحتاج إلى مختبر Packet Tracer محدد مكتمل ومشرح بدلاً من أن تحله بنفسك، راجع دروس CCNA و Packet Tracer الصفحة التي توضح كيفية عمل ذلك.

كتب بواسطة

ZILL E ALI

مهندس شبكات معتمد بشهادتي MTCNA و MTCRE ومتخصص في بنية تحتية لمزودي خدمة الإنترنت، ومؤسس Developer Zon. يكتب هنا عن MikroTik و Cisco وبنية تحتية لمزودي الخدمة، وأحيانًا عن سجلات البناء.

اترك ردًا

يستخدم هذا الموقع Akismet لتقليل البريد المزعج. تعرف على كيفية معالجة بيانات تعليقك.