Cisco Switch VLAN Configuration

M. Ichsanul Fadhil•November 21, 2026•7 min read

Create and name VLANs across Catalyst switches, assign static access switchports, configure 802.1Q trunks, and verify local broadcast separation.

cisco-vlan-configuration.simneta
Topology Preview

When you plug a workstation into a brand-new Cisco Catalyst switch, everything seems to work right away. Every host can talk to every other host, and computers discover network resources effortlessly.

However, this initial convenience hides a serious scalability flaw. By default, every single physical port on an unconfigured switch belongs to the exact same broadcast domain: VLAN 1.

When a network grows from ten computers to hundreds of devices, an unsegmented switch turns into a loud, chaotic echo chamber. Every Address Resolution Protocol (ARP) query, DHCP discovery broadcast, and system announcement floods across every copper port, slowing down workstations and exposing sensitive traffic.

The Invisible Wall: Containing Broadcast Storms with VLANs

A Virtual Local Area Network (VLAN) creates an invisible wall inside the physical switch chassis. Instead of buying separate physical switches for each team, a network engineer divides one physical switch into multiple logical switches.

When a switch port belongs to an isolated VLAN, the switch refuses to flood broadcast frames outside that specific group. Workstations in the accounting department never receive broadcast traffic generated by engineering lab testing.

This isolation improves daily network performance by cutting down unnecessary CPU interrupts on client endpoints. It also creates a clean security boundary, preventing unauthorized users on one subnet from intercepting packets belonging to another department.

Broadcast Containment: Flat LAN vs VLAN Segmentation

Figure 1. Broadcast Containment: Flat Single Broadcast vs Isolated VLAN Domains

Access Ports: Handling Untagged Frames at the Network Edge

Standard computers, laptops, and network printers have no idea what a VLAN is. Their network interface cards (NICs) create and transmit standard, unadorned Ethernet frames without any special tracking tags.

This is where the switch access port does its core job. When an engineer configures an interface using the switchport mode access command and binds it to a specific VLAN, the switch acts as an intelligent gatekeeper.

As soon as an untagged frame enters the physical port, the switch assigns an internal VLAN tag to that frame inside its backplane memory. The switch looks up the destination MAC address strictly within that VLAN's dedicated forwarding table.

When forwarding that frame out toward another edge workstation in the same VLAN, the switch strips the internal label completely. The receiving computer receives a completely clean, standard Ethernet frame.

Access Port Behavior: Untagged Edge Frames

Figure 2. Access Port Behavior: Ingress Internal Mapping and Clean Frame Delivery

The 802.1Q Highway: Multiplexing Traffic Across Switch Trunks

Splitting ports on a single switch works great for one small office. However, real enterprise networks spread across multiple rooms, wiring closets, and buildings, requiring interconnected switches.

If you connect two switches using regular access ports, you would need a separate physical cable for every single VLAN. Running dozens of dedicated cables between switches wastes valuable switch ports and creates expensive wiring messes.

The solution is an IEEE 802.1Q trunk link. A trunk is a high-speed shared pipe that carries traffic for many different VLANs simultaneously over a single physical link.

To keep traffic separated over this shared cable, the sending switch inserts a special 4-byte 802.1Q tag into the original Ethernet frame header. This 32-bit field contains the Tag Protocol Identifier (0x8100) and a 12-bit VLAN Identifier (VID), allowing up to 4,094 distinct virtual networks.

When the neighboring switch receives the tagged frame on its trunk port, it inspects the VLAN ID in the header. The switch then forwards the frame only to ports assigned to that exact matching VLAN, keeping all data streams organized and separate.

IEEE 802.1Q Trunk Tagging and Frame Anatomy

Figure 3. IEEE 802.1Q Frame Anatomy: The 4-Byte Tag and Trunk Multiplexing

Securing the Highway: Native VLANs and Unused Port Parking

Every 802.1Q trunk has one special rule known as the Native VLAN. By default on Cisco Catalyst switches, the native VLAN is VLAN 1.

Any frame belonging to the native VLAN traverses the trunk link completely untagged, without the 4-byte 802.1Q header. Cisco switches use this untagged channel for backward compatibility with legacy hubs and control protocols like CDP, PAgP, and VTP.

Leaving the native VLAN set to default VLAN 1 presents a known security risk. Attackers can exploit default configurations through double-tagging techniques to hop from one VLAN into another.

Best engineering practices require changing the native VLAN on both ends of the trunk to a dedicated, unused ID (such as VLAN 1000). In addition, unused switch ports should be shut down and parked in a dead-end VLAN (such as VLAN 20 Parking_Lot) to lock down the physical access layer.

The Complete Journey: End-to-End Inter-Switch Ping Verification

With access ports configured on the edge and an 802.1Q trunk linking S1 and S2, our two remote workstations can now communicate as if they sat next to each other on the exact same physical wire.

When PC-A (192.168.10.3) sends an ICMP Echo Request to PC-B (192.168.10.4), the frame follows a smooth, multi-step path through the network infrastructure:

First, PC-A sends an untagged frame to S1 port Fa0/6. Next, S1 identifies the port as VLAN 10, encapsulates the frame with a 4-byte 802.1Q tag marked VID 10, and shoots it across trunk link Fa0/1.

Finally, S2 receives the frame on its Fa0/1 trunk interface, reads the VID 10 tag, strips the 802.1Q header off, and delivers the clean untagged frame out port Fa0/18 directly into PC-B. The ping replies return along the exact same path in reverse, confirming complete Layer 2 reachability.

End-to-End Inter-Switch Ping Journey

Figure 4. End-to-End Frame Journey: Successful Inter-Switch Ping Between PC-A and PC-B

Hands-On Practice: Configuration and Verification Guide

Now that you understand how frame tagging and switchport isolation work, open the interactive simulator playground above to configure switch S1 and switch S2.

Begin by creating VLAN 10 on both switches and giving it an intuitive name. Next, assign the host-facing edge ports (Fa0/6 on S1, Fa0/18 on S2) as static access ports inside VLAN 10.

Configure the inter-switch link on FastEthernet0/1 to operate as an active 802.1Q trunk, and verify that the native VLAN settings match on both ends to prevent native VLAN mismatch alerts.

Use standard Cisco verification commands to confirm your work:

S1# show vlan brief
! Check active VLANs and verify that Fa0/6 is mapped to VLAN 10

S1# show interfaces trunk
! Confirm Fa0/1 is actively trunking with 802.1Q encapsulation

PC-A> ping 192.168.10.4
! Verify full end-to-end ICMP connectivity across the trunk

When all five ping packets return with sub-millisecond round-trip times, you have successfully built, secured, and verified a multi-switch VLAN infrastructure.

Discussion & Community Notes

Ask questions, share configuration solutions, or discuss this practice lab.

0 Comments
Posting as Guest • 1-level replies supported