🌑

Linhost.info

Delete Multiple VLAN's at Once - Cisco IOS

The scenario is a simple one, I have a Cisco 2960 switch with 3 VLANs(10 Acct_dept, 12 HR_dept, 20 Guests) that I need to remove. To demonstrate here is the partial output from the Catalyst 2960, use the show vlan command to view all VLANs in the switch.

SW1# show vlan

VLAN Name


1 default

10 Acct_dept
12 HR_dept
20 Guests
1002 fddi-default
1003 token-ring-default
1004 fddinet-default

To delete multiple VLANs(range) we use the no parameter, followed by the VLANs range to be deleted. In this case all VLANs between 10 and 20 will be removed. When you delete a VLAN ports assigned to the same will revert back to VLAN 1.

SW1(config)# no vlan 10-20

Issue the show vlan command once again to confirm that all previous VLANs are now removed.

SW1# show vlan

VLAN Name


1 default

1002 fddi-default
1003 token-ring-default
1004 fddinet-default

Conclusion

Efficient and less painful for those of us that regularly make changes. Feel free to leave a comment below, who knows I maybe able to provide some extra assistance. Creating Ethernet VLANs on Catalyst Switches - cisco.com

, — Jan 29, 2013