Networking  

How To Set VLAN Configuration On Cisco Networking Switch

Introduction

In this article, I will show you how to set VLAN configuration on a Cisco networking switch using the proper and easiest method.

Virtual Local Area Networks (VLANs) are essential for segmenting a network, improving security, and managing broadcast domains. On Cisco networking switches, setting up VLANs is a fundamental skill for network administrators. This article provides a step-by-step guide on how to configure VLANs on a Cisco Catalyst switch using the Command Line Interface (CLI).

Now I’m using two types of different VLANs, one is VLAN 10 for the IT department, and the other is VLAN 20 for the HR department. For your reference, below is a Cisco diagram.

diagram

Step 1. Open your switch, then type mention code for the switch. After turning on the switch, configure the mode.

Switch>ENABLE
Switch#CONFIGURE TERMINAL

cli

Step 2. Creating a VLAN for 10-based IP address.

Switch(config)#VLAN 10
Switch(config-vlan)#NAME IT
Switch(config-vlan)#EXIT

Step 2

Step 3. Creating a VLAN for 20-based IP address.

Switch(config)#VLAN 20
Switch(config-vlan)#NAME HR
Switch(config-vlan)#EXIT

Step 3

Step 4. Now we are going to assign VLANS to ports.

For IT Department (VLAN 10):

Switch(config)#INTERFACE RANGE FA0/1-2
Switch(config-if-range)#SWITCHPORT ACCESS VLAN 10
Switch(config-if-range)#EXIT

Step 4 For IT Department (VLAN 10)

For HR Department (VLAN 20)

Switch(config)#INTERFACE RANGE FA0/3-4
Switch(config-if-range)#SWITCHPORT MODE ACCESS
Switch(config-if-range)#SWITCHPORT ACCESS VLAN 20
Switch(config-if-range)#EXIT

Step 4 For HR Department (VLAN 20)

Conclusion

By following these steps, you can set VLAN configuration on a Cisco networking switch using the proper and easiest method. If you need clarification regarding this topic, feel free to contact me.