How to Delete a VLAN in Switch Device

Posted on

Introduction

This is an article where the focus is to show how to delete a VLAN in switch device. The process for deleting the VLAN is possible by showing it using a application simulator such as Cisco Packet Tracer or GNS3. Just access the switch device either it is a real device or it exist in the application simulator.

Delete VLAN

The following are steps to delete or to remote VLAN completely :

1. First of all, access the switch. After accessing the switch, type the following command to move from the User EXEC mode to the Privileged EXEC mode as follows :

Switch>ena
Switch#

2. After that, type the following command to list or to preview the available VLAN :

Switch#sh vlan br

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa2/1, Fa3/1, Fa4/1, Fa5/1
10   VLAN0010                         active    Fa0/1, Fa1/1
20   VLAN0020                         active    
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active    
Switch#

As it shows in the above output of the command execution, there are several VLAN available. Those VLAN are VLAN 10 and VLAN 20.

3. After previewing the list of available VLANs, just choose the one for deletion process. For an example, choose VLAN 20 for deletion. In order to delete VLAN 20, there are several steps for the process. Starting from accessing or changing from the Privileged EXEC mode into the Global Configuration Command mode. Following to that step is to execute the command to remove the VLAN 20. The following are those steps :

Switch#conf t 
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#

So, the following command is the command to remove or to erase VLAN 20 :

no vlan vlan_id

Use the above command pattern and change the paramater of vlan_id into the vlan id which in this context it is ’20’ :

Switch(config)#no vlan 20 
Switch(config)#do wr
Building configuration...
[OK]
Switch(config)#

After successfully execute the above command for removing VLAN 20, don’ forget to rerun the previous command for checking the available VLAN :

Switch(config)#do sh vlan br

VLAN Name Status Ports


1 default active Fa2/1, Fa3/1, Fa4/1, Fa5/1
10 VLAN0010 active Fa0/1, Fa1/1
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Switch(config)#

As in the output above, VLAN 20 is not exist or not available anymore. It is because VLAN 20 is completely removed.

Leave a Reply