Hands-On Lab: Configuring Standard VLANs on Catalyst Switches

This hands-on lab covers creating standard-range VLANs, assigning access ports to them, and verifying that devices in different VLANs are properly isolated from each other at Layer 2.

VLAN CreationAccess Port AssignmentVLAN Verification

~2 min read · Updated Sep 12, 2026

Lab Objective

Create two standard-range VLANs on a Catalyst switch, assign specific access ports to each, and verify that devices in different VLANs cannot communicate directly while devices in the same VLAN can.

Lab Purpose

Creating and assigning VLANs is one of the single most common configuration tasks performed on any Cisco switch, forming the basis for network segmentation in virtually every enterprise deployment.

Lab Topology

Switch1
  Gi1/0/1 ---- PC-A (VLAN 10 - Accounting)
  Gi1/0/2 ---- PC-B (VLAN 10 - Accounting)
  Gi1/0/3 ---- PC-C (VLAN 20 - Marketing)

PC-A: 192.168.10.10/24
PC-B: 192.168.10.11/24
PC-C: 192.168.20.10/24

Task 1: Create the VLANs

Create VLAN 10 named Accounting and VLAN 20 named Marketing.

Task 2: Assign Ports to VLANs

Configure Gi1/0/1 and Gi1/0/2 as access ports in VLAN 10, and Gi1/0/3 as an access port in VLAN 20.

Task 3: Verify VLAN Assignment

Confirm each port shows the correct VLAN membership.

Task 4: Verify Connectivity Within the Same VLAN

Confirm PC-A can ping PC-B, since both are in VLAN 10.

Task 5: Verify Isolation Between VLANs

Confirm PC-A cannot ping PC-C, since they are in different VLANs with no inter-VLAN routing configured.

Solution and Verification

Switch1(config)# vlan 10
Switch1(config-vlan)# name Accounting
Switch1(config-vlan)# exit
Switch1(config)# vlan 20
Switch1(config-vlan)# name Marketing
Switch1(config-vlan)# exit

Switch1(config)# interface range gigabitethernet1/0/1-2
Switch1(config-if-range)# switchport mode access
Switch1(config-if-range)# switchport access vlan 10
Switch1(config-if-range)# exit

Switch1(config)# interface gigabitethernet1/0/3
Switch1(config-if)# switchport mode access
Switch1(config-if)# switchport access vlan 20

Switch1# show vlan brief

VLAN Name       Status    Ports
---- ---------- --------- ---------------------
10   Accounting active    Gi1/0/1, Gi1/0/2
20   Marketing  active    Gi1/0/3

PC-A> ping 192.168.10.11

Reply from 192.168.10.11: bytes=32 time=1ms
Reply from 192.168.10.11: bytes=32 time=1ms

PC-A> ping 192.168.20.10

Request timed out.
Request timed out.
-- No route exists between VLAN 10 and VLAN 20
-- without inter-VLAN routing configured, and
-- Layer 2 alone never bridges separate VLANs

Key Takeaway

Devices in the same VLAN communicate freely at Layer 2 regardless of which physical port they connect to, while devices in different VLANs are completely isolated from each other until a Layer 3 device is configured to route between them — VLAN creation alone provides segmentation, not connectivity.

Written & researched by Dr. Shahin Siami

Related Articles

Hands-On Lab: Configuring VTP Clients and Servers on Catalyst Switches

This hands-on lab configures VLAN Trunking Protocol between a server switch and a client switch, demonstrating how VLANs created on the server automatically propagate to the client without manual configuration on every device.

Continue

Hands-On Lab: Verifying IP Parameters on macOS (GUI)

This hands-on lab covers checking a Mac's current IP configuration using the System Settings network panel, viewing detailed TCP/IP information, and renewing a DHCP lease directly from the graphical interface.

Continue

Hands-On Lab: Verifying IP Parameters on Linux (GUI and CLI)

This hands-on lab covers checking a Linux machine's current IP configuration using both the GUI network settings panel and command-line tools, and demonstrates renewing a DHCP lease using standard Linux networking utilities.

Continue

Hands-On Lab: Verifying IP Parameters on Windows (GUI and CLI)

This hands-on lab covers checking a Windows PC's current IP configuration using both the graphical Network Connections interface and the command-line ipconfig utility, including releasing and renewing a DHCP-assigned address.

Continue

Hands-On Lab: Power over Ethernet (PoE) Basics

This hands-on lab covers verifying PoE capability on a switch port, checking how much power is being drawn by a connected device such as an IP phone or access point, and configuring power priority to protect critical devices during a power budget shortage.

Continue

Hands-On Lab: Configuring GRE Point-to-Point Tunnels

This hands-on lab configures a GRE tunnel between two routers across an intermediate transit network, allowing routing protocols and multicast traffic to pass between sites even when the underlying transport network would not normally support them directly.

Continue