How to configure VLANs on an access switch

To configure VLANs on an access switch, create the VLANs, assign ports to them, configure trunk links if needed, and verify connectivity.Step 1: Plan VLANsBefore configuring, determine the VLAN IDs an...

How to configure VLANs on an access switch

To configure VLANs on an access switch, create the VLANs, assign ports to them, configure trunk links if needed, and verify connectivity.

Step 1: Plan VLANs

Before configuring, determine the VLAN IDs and names, which ports will be access ports, and which ports will be trunk links. Decide if the switch will only perform Layer 2 switching or also provide Layer 3 gateway functions through SVIs. Ensure you know whether a management VLAN is required for remote access via SSH or Telnet .

Step 2: Create VLANs

Enter global configuration mode on the switch and create VLANs using the vlan command. Assign a meaningful name to each VLAN for easier management. For example, to create VLAN 10 and VLAN 20:

Switch> enableSwitch# configure terminalSwitch(config)# vlan 10Switch(config-vlan)# name SalesSwitch(config-vlan)# exitSwitch(config)# vlan 20Switch(config-vlan)# name MarketingSwitch(config-vlan)# exit

This creates the VLANs and allows you to configure additional options if needed .

Step 3: Assign Access Ports to VLANs

Access ports connect end devices like PCs or printers and belong to a single VLAN. Enter interface configuration mode and assign the VLAN using the switchport mode access and switchport access vlan commands:

Switch(config)# interface GigabitEthernet0/1Switch(config-if)# switchport mode accessSwitch(config-if)# switchport access vlan 10Switch(config-if)# exitSwitch(config)# interface GigabitEthernet0/2Switch(config-if)# switchport mode accessSwitch(config-if)# switchport access vlan 20Switch(config-if)# exit

Repeat this for all access ports that need to be assigned to VLANs .

Step 4: Configure Trunk Ports (if connecting switches)

If the switch connects to another switch, configure the uplink ports as trunks to carry multiple VLANs:

Switch(config)# interface GigabitEthernet0/24Switch(config-if)# switchport mode trunkSwitch(config-if)# exit

Trunk ports use 802.1Q tagging to carry traffic for multiple VLANs .

Step 5: Verify VLAN Configuration

Use the following commands to verify VLANs and port assignments:

  • show vlan brief – displays VLANs and their assigned ports.
  • show interfaces trunk – shows trunk ports and allowed VLANs.
  • ping or test connectivity – verify devices in the same VLAN can communicate, and inter-VLAN routing works if configured .

Step 6: Optional Configurations

  • Voice VLAN: Assign a separate VLAN for IP phones using switchport voice vlan <VLAN_ID>.
  • Management VLAN: Configure an SVI for remote management if needed.
  • SVI for Layer 3: If inter-VLAN routing is required, configure an SVI on a Layer 3 switch with an IP address for each VLAN . By following these steps, you can segment your network into logical VLANs, isolate broadcast domains, and improve network security and performance.
Jul 27, 2025

Wireless VLANs

Note When you configure VLANs on access points, the native VLAN must be VLAN 1. In a single architecture, client

Jun 01, 2026

How to Configure VLAN on Cisco Switch: Step-by-Step

Learn how to configure VLAN on Cisco switch step-by-step. Covers VLAN creation, port assignment, trunk configuration, best

Jun 29, 2026

VLAN Configuration on Cisco IOS Switch

VLAN Configuration on Cisco IOS Switch In this lesson, I will show you how to configure VLANs on Cisco Catalyst Switches and how

Nov 20, 2025

Assign an Interface VLAN as an Access or Trunk Port on a Cisco

This article aims to show you how to configure an interface VLAN on your switch to be an access, or trunk port

Jul 29, 2025

Switch Port VLAN Assignment (Trunk & Access Ports)

Switch Port VLAN Assignment (Trunk & Access Ports) Configuring VLANs (Virtual Local Area Networks) on switch ports is essential

Jun 23, 2026

Cisco Nexus 5000 Series NX-OS Software Configuration Guide

Ethernet interfaces can be configured either as access ports or trunk ports. Trunks carry the traffic of multiple VLANs

Jan 05, 2026

Configuring VLAN

Information About Configuring VLAN A Virtual Local Area Network (VLAN) is a switched network that is logically segmented by

Jun 06, 2026

How To Configure VLANs On the Catalyst Switches

Introduction VLAN stands for Virtual Local Area Network one physical cisco switch; you can create multiple VLANs

Jan 10, 2026

Configure VLANs on a Cisco Switch | ComputingForGeeks

This guide shows how to configure VLANs on a Cisco switch: creating them, putting access ports into them, adding a

Apr 07, 2026

Configuring VLANs on Cisco Switches

Master configuring VLANs on Cisco switches. Learn to configure Access and Trunk ports, and Native VLANs and Allowed VLAN

Nov 27, 2025

VLAN Configuration on a Cisco Switch

This guide provides a step-by-step walkthrough, covering VLAN ranges, creation, and port assignment. Improve

Feb 11, 2026

How to set up a VLAN: Step-by-Step Tutorial & FAQs

Follow this step-by-step tutorial to create a VLAN and then configure it to allow data packets from another VLAN to

Apr 19, 2026

How to Create and Configure VLANs on a Cisco Switch with Example

This post will deal with creating Layer 2 VLANs on Cisco switches and performing all relevant configurations. Up to 4094 VLANs can

Jun 04, 2026

How To Set VLAN Configuration On Cisco Networking Switch

Learn how to configure VLANs on a Cisco networking switch using the Command Line Interface (CLI). This step-by

May 13, 2026

Configuring VLANs

This article describes how to configure VLANs (Virtual Local Area Networks) on a Cisco switch and view the resulting output.

Jun 17, 2026

VLAN Configuration: Step-by-Step Tutorial | NSC

To create a VLAN, you usually need access to your switch''s configuration interface. This setup is often done through

May 13, 2026

How to Set Up a VLAN in 12 Steps: Creation & Configuration

Whether you''re an expert or just starting out, this article will help you master the art of VLAN setup. Learn the basics

Sep 07, 2025

Configuring VLAN

A Virtual Local Area Network (VLAN) is a switched network that is logically segmented by function, project team, or application,

Jan 07, 2026

Configuring Access and Trunk Interfaces

Configuring Access and Trunk Interfaces Ethernet interfaces can be configured either as access ports or trunk ports.

Apr 07, 2026

Step-by-Step VLAN Configuration Guide | PDF | Network Switch

This document provides a step-by-step guide to configure VLANs in Cisco switches using examples. It begins by explaining how to

Jun 28, 2026

Configure basic VLANs on a switch and assign ports to them.

Switch (config-if)# exit Repeat this process for all the ports and VLANs you want to configure. switchport mode access

Aug 16, 2025

Configuring and Verifying VLANs on Cisco Switches: A Practical

You''ll see how to build access VLANs, set up trunks safely, choose a routing method, and confirm behavior with

Feb 01, 2026

How to Configure VLAN on Cisco Switch in Cisco Packet Tracer

How to Create and Configure VLANs on Cisco Switch with Packet Tracer In a physical network environment, you can

Sep 29, 2025

How to Configure VLAN on a Cisco Switch: Step-by-Step Guide

If your goal is to configure VLANs correctly on a Cisco switch, focus on the full workflow rather than just one command.

Broadcast Optical Network Insights

Need Reliable Broadcast Optical Network Equipment?

Contact us today for product inquiries, custom kits, or integration support