How to Create and Delete VLAN on Cisco Catalyst Switch?
Last Updated :
25 Jul, 2023
Virtual Local Area Networks (VLANs) are used in computer networks to divide a physical network into many logical networks, enhancing security, flexibility, and scalability. This article will walk you through the steps of adding and removing VLANs from a Cisco Catalyst Switch.
Steps To Create and Delete VLAN on Cisco Catalyst Switch
Step 1: Open the Command Line Interface (CLI) of the Switch. You must use the Cisco Catalyst Switch’s Command Line Interface to setup VLANs. This may be accomplished with a console cable or remotely using Telnet or SSH.
Step 2: Enter Privileged EXEC Mode. Once you’ve accessed the CLI, enter privileged EXEC mode by running the following command and entering the necessary password:
switch> enable
Step 3: Navigate to the Global Configuration Mode. Type the following command to enter global configuration mode:
switch# configure terminal
Step 4: Create a VLAN.Use the following command to create a VLAN:
switch(config)# vlan ‘<vlan_id>’
Substitute <vlan_id> with the required VLAN number. For instance, to create VLAN 10, enter:
switch(config)# vlan 10
Step 5: Copy the code switch(config)# vlan 10. Give the VLAN a name. Use the following command to give the VLAN a descriptive name:
switch(config-vlan)# name <vlan_name>
Substitute <vlan_name> with required name. As an example:
switch(config-vlan)# name Sales
Step 6: VLAN Interface Configuration (Optional). You can construct a VLAN interface if you wish the VLAN to have Layer 3 capabilities. The following command should be used:
switch(config)# interface vlan ‘<vlan_id>’
<vlan_id> should be replaced with the VLAN number you want to setup. To configure VLAN 10, for example, use:
Switch(config)# vlan 10 interface
Then, using the ip address command, assign an IP address to the VLAN interface.
Step 7: Assign the VLAN’s ports. Use the following command to add ports to the VLAN.
switch(config)# interface ‘<interface_id>’
Replace ‘<interface_id>’ with the name of the VLAN interface you wish to attach. To attach interface FastEthernet 0/1 to VLAN 10, for example, use:
Switch(config)# interface FastEthernet 0/1
Switch(config-if)# access switchport mode
Switch(config-if)# access switchport vlan 10
Step 8: Check the Configuration. Use the following commands to confirm that the VLAN has been formed and the ports have been appropriately assigned:
switch# show vlan
switch# show interfaces switchport
These commands will display the VLAN information as well as the interface status.
Step 9:For Delete a VLAN use the following command.
switch(config)# no vlan <vlan_id>
Replace ‘< vlan_id>’ with the VLAN number to be removed. To remove VLAN 10, for example, type:
switch(config)# no vlan 10
Different Approaches To VLANs
- VLAN Trunking Protocol (VTP): VTP enables automated VLAN configuration dissemination across numerous network switches.
- VLAN Routing: VLAN routing is the process of routing traffic between VLANs utilising Layer 3 switches or routers.
- VLAN Security: By separating critical resources and instituting access control, VLANs may be utilised to improve network security.
Applications of VLAN
- Network Segmentation: VLANs offer network segmentation, allowing distinct departments or projects to have their own isolated network environments.
- Broadcast Control: VLANs limit the scope of broadcast traffic, which reduces network congestion and improves overall performance.
Advantages of VLAN
- Security: VLANs can segregate critical data, restricting unauthorised access and decreasing the attack surface.
- Improved Network Performance: VLAN segmentation minimises broadcast traffic, which improves network performance.
- Scalability: VLANs provide flexible network growth without requiring physical reconfiguration.
Disadvantages of VLAN
- Complexity: Configuring and administering VLANs may be difficult, necessitating networking knowledge and careful planning.
- Administrative Overhead Increased: VLANs may need greater administrative work for maintenance, monitoring, and troubleshooting.
- Limited Broadcast Domain:A tiny broadcast domain might get saturated if VLANs are not appropriately constructed, reducing network performance.
Conclusion
Creating and removing VLANs on a Cisco Catalyst Switch is a critical network management operation. You can efficiently manage VLANs to optimise network performance and security by following the step-by-step guidance and learning the fundamentals, subtopics, applications, benefits, and drawbacks.
Similar Reads
How To Delete Configuration of a Cisco Router and Switches?
In a Cisco network, it is important to periodically delete the configuration of routers and switches to ensure that the network is running smoothly and efficiently. In this article, we will explain how to delete the configuration of a Cisco router and switch using the command-line interface (CLI). B
3 min read
How to Disable Telnet on Cisco Switches and Routers?
A computer network is a group of devices connected to each other using a transmission method such as cables etc. These devices can be computers, printers, scanners, fax machines, etc. The purpose of having a computer network is to send and receive data. stored on other devices over the network. Thes
4 min read
Catalyst Switch Password Reset in Cisco
A catalyst switch is the type of fixed-configuration switch. These switches are sometimes called managed switches. In order to give the finest application experience, the highest levels of security, the most accurate control and management of the network, and the greatest scalability, they are creat
2 min read
How to Configure SSH on Cisco Routers and Switches?
Overview :SSH is a security mechanism, which can be used to access the privilege and configuration mode of a Router and a Switch from a remote location to perform the required action. The primary aim to configure SSH is to access devices deployed in a network from a remote location so that the requi
3 min read
How to Create a New Branch in Git and Push the Code?
Branching in Git is a helpful feature for software developers working on a big team project. It allows the team members to work on different aspects of the software by creating a branch from the main branch. The main branch is not affected by the changes in the created branch until it is merged into
8 min read
MAC Address Table On a Cisco Switches
The MAC (Media Access Control) address is a 48-bit physical identity of a device used to uniquely identify a device in layer 2 of the OSI model. It is represented in hexadecimal. The 3 bytes of the address represent the OUI, and the last 3 bytes are unique to the device itself. The switch keeps trac
3 min read
How to Deploy Cable Devices in Cisco Packet Tracer?
The main purpose of Cisco Packet Tracer is to help students learn the principles of networking with hands-on experience as well as develop Cisco technology specific skills. Since the protocols are implemented in software only methods, this tool cannot replace hardware Routers or Switches. Interestin
3 min read
How to Declare 3-Dimensional Arrays in Wiring in C?
Prerequisite: Array in C Arrays are used the make a list of the same data type elements and store it in contiguous memory locations. In simple words, arrays are the organization of elements of the same data types. There are many types for declaring the array i.e, 1-Dimensional arrays, 2-Dimensional
2 min read
How to Switch Branch in Git?
Git is a Powerful tool that helps developers keep track of changes in their code. One of the important tasks in Git is Switching between branches. Branches allow you to work on different features, bug fixes, or experiments at the same time, without affecting the main project. In this guide, you will
6 min read
Creating Virtual Local Area Networks (VLANs) in Cisco
A VLAN is a group of end stations with common requirements regardless of their physical location. VLANs have the same attributes as physical local area networks, but end stations can be grouped even if they are physical local area networks. Not physically on the same LAN segment. VLANs are typically
2 min read