deleting multiple interface vlans easily

Unanswered Question
Mar 12th, 2010
User Badges:

I have a switch that has a lot of blank interface vlans that I want to clean up.


There are a lot of them (few hundred) with the config


interface VLANxxx

  no ip address


is there an easy way to get rid of several at one time?


-J

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Erik Ingeberg Fri, 03/12/2010 - 15:36
User Badges:

I have a trick, use Excel.


Just write:


no interface vlan 1


in a cell (or start with the vlan interface number you need). Then just drag the lower right corner of the cell downwards and the cells below will populate with ascending numbers.


Then just copy and paste into the switch.

Ganesh Hariharan Fri, 03/12/2010 - 22:27
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Member's Choice, February 2016

I have a switch that has a lot of blank interface vlans that I want to clean up.


There are a lot of them (few hundred) with the config


interface VLANxxx

  no ip address


is there an easy way to get rid of several at one time?


-J


Hi J,


If you are sure that those vlans are not in production LAN,then i would recoomend to delete the unwanted vlan interface before deleting the vlan interfcae also check by show vlan command that how many ports are connected to those vlan and are in working condition or not before deleting the vlan interface.


and always recoomended to delet vlan interface one by one rather in single shot, command to delete is no vlan interface 100.


Hope to Help !!


Remember to rate helpful post


Ganesh.H

Leo Laohoo Sun, 03/14/2010 - 21:26
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

To delete VLAN instances:  no vlan 10,22-30,33,36
To delete VLAN interfaces:  no interface range vlan <#> - <#> , <#>

millerjw Mon, 03/15/2010 - 07:31
User Badges:

thanks for setting my stupid straight.

I tried no int vlan range xx-xx and of course it didn't work.


-J

Leo Laohoo Mon, 03/15/2010 - 14:18
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

There's a space in between the "-".

Actions

This Discussion