Lesson Overview

A Virtual Local Area Network (VLAN) is a logical segmentation technology that divides a physical switched network into multiple broadcast domains.

VLANs allow devices connected to the same physical network infrastructure to operate as members of separate logical networks.

For example, an enterprise may create VLAN 10 for the IT department, VLAN 20 for Finance, and VLAN 30 for HR.

IEEE 802.1Q is an Ethernet VLAN tagging standard that allows multiple VLANs to share a single trunk link between switches, routers, firewalls, or other VLAN-aware devices.

In Cisco enterprise networks, VLANs and 802.1Q trunking are fundamental technologies for scalable campus switching, traffic separation, and network administration.


Learning Objectives

After completing this lesson, learners will be able to:

  1. Explain the purpose and operation of VLANs.

  2. Understand how VLANs divide broadcast domains.

  3. Differentiate between access ports and trunk ports.

  4. Explain IEEE 802.1Q frame tagging.

  5. Understand native VLANs and allowed VLAN lists.

  6. Configure VLANs on Cisco Catalyst switches.

  7. Assign switch ports to specific VLANs.

  8. Configure IEEE 802.1Q trunking between Cisco switches.

  9. Verify VLAN membership, trunk status, and MAC address learning.

  10. Troubleshoot VLAN communication and trunk configuration problems.

CCNP focus: At CCNP level, do not stop at memorizing commands. Be able to predict what happens to a frame, explain why a VLAN does or does not cross a trunk, and isolate which Layer 2 condition is blocking traffic.


1. What Is a VLAN?

A Virtual LAN (VLAN) is a logical grouping of devices that belong to the same Layer 2 broadcast domain.

Without VLAN segmentation, devices connected to a single switched LAN generally share one broadcast domain.

By configuring VLANs, network administrators can separate devices into logical groups even when they are connected to the same physical switching infrastructure.

Pasted content image

Figure 1 - Three VLANs on one access switch form three independent Layer 2 broadcast domains.


Example

An enterprise has three departments:

TypeVLAN IDNetwork
UersVLAN 1010.10.10.0/24
Voice
VLAN 2010.20.20.0/24
GuestVLAN 3010.30.30.0/24


1.1 Why VLANs are used

Segmentation: separate departments, tenants, devices, or security zones.

Broadcast control: reduce the Layer 2 broadcast scope.

Policy alignment: apply different ACL, QoS, firewall, or routing policies per VLAN/VRF.

Operational organization: map logical functions such as USERS, VOICE, SERVERS, GUEST, MANAGEMENT to dedicated VLANs.

Failure containment: a Layer 2 problem in one VLAN is less likely to affect unrelated VLANs.


VLAN ID Ranges

IEEE 802.1Q provides a 12-bit VLAN Identifier field. Cisco Catalyst platforms commonly describe VLANs as normal-range and extended-range VLANs. Exact feature support and VTP behavior depend on platform and software release.

VLAN RangeDescription
0Reserved for priority-tagged frames
1Common Cisco default VLAN
2–1001Normal-range VLANs commonly available for user configuration
1002–1005Reserved legacy VLANs on many Cisco platforms
1006–4094Extended-range VLANs
4095Reserved

The precise available VLAN range depends on switch capabilities and software configuration.


2. What Is an Access Port?

An access port is a switch interface assigned to a single data VLAN.

It is commonly used to connect:

  • Desktop computers.

  • Servers.

  • Printers.

  • Other ordinary Ethernet endpoints.

Access ports typically transmit and receive untagged Ethernet frames.

When an untagged frame arrives on an access port, the switch associates it with that port's configured VLAN.


2.1 Access port behavior

An access port normally belongs to one access VLAN. Ethernet frames received from a typical endpoint are untagged; the switch internally associates the frame with the port’s VLAN. When the switch sends the frame back to an endpoint through another access port, it is also normally untagged.

interface GigabitEthernet1/0/10

 description USER-PC

 switchport mode access

 switchport access vlan 10

 spanning-tree portfast

Basic VLAN creation and verification

vlan 10

 name USERS

vlan 20

 name VOICE

vlan 30

 name GUEST

vlan 999

 name NATIVE-BLACKHOLE

Item

What it means

VLAN ID

12-bit 802.1Q VLAN identifier; usable normal-range IDs are typically 1-1005, with additional extended-range support on modern platforms.

Access VLAN

VLAN assigned to untagged user traffic on an access port.

Voice VLAN

Cisco access-port feature that can let an IP phone tag voice traffic while attached PC data remains in the access VLAN.

Management VLAN

A VLAN commonly used for switch management addresses; it is an operational design choice, not a special Ethernet frame type.

SVI

A Layer 3 interface for a VLAN, used for management or inter-VLAN routing on a multilayer switch.

Default VLAN

VLAN 1 exists by default on Cisco Catalyst switches. It is commonly kept out of normal user-data and management designs where possible.

Native VLAN

VLAN used for untagged traffic on an 802.1Q trunk unless native tagging is explicitly enabled on a supported platform.

Guest/Public VLAN

An enterprise design label for untrusted or Internet-only access. “Public VLAN” is not a formal IEEE/Cisco VLAN category; policy usually restricts access to internal networks.

Private VLAN (PVLAN)

A Layer 2 isolation feature that divides a primary VLAN into isolated or community secondary VLANs and uses promiscuous ports for shared services/gateways.

Parking / black-hole VLAN

An unused VLAN assigned to unused access ports as an operational security measure; the ports are normally shut down as well.


3. VLAN Types and Enterprise Roles

In enterprise switching, the word “type” is used in two ways. Some terms describe actual VLAN or switchport behavior (for example native VLAN or private VLAN), while others are operational design roles (for example data, management, guest, or parking VLAN). The distinction matters because a design role does not automatically create a special forwarding behavior.

Pasted content image

Figure 3 - Common enterprise VLAN roles and how they relate to an access/distribution switch.


CCNP distinction: 

A VLAN name such as USERS, GUEST, PUBLIC, SERVER, or IOT expresses intent. Forwarding behavior still depends on switchport mode, VLAN membership, trunking, STP, Layer 3 policy, and any features such as PVLANs.


3.1 Private VLANs (PVLANs)

A Private VLAN divides a normal Layer 2 broadcast domain into smaller Layer 2 subdomains while allowing the endpoints to share the same primary VLAN IP subnet. A PVLAN domain has one primary VLAN and one or more secondary VLANs. Secondary VLANs are either isolated or community VLANs.

Pasted content image

Figure 3.1 - Private VLAN behavior: isolated hosts, community hosts, and a promiscuous gateway port.


Important

PVLANs provide Layer 2 isolation. Routing, firewall policy, or other Layer 3 processing can still permit communication between hosts or networks unless the Layer 3 policy also blocks it.

PVLAN Configuration Example…