deleting multiple interface vlans easily

Unanswered Question
Mar 12th, 2010

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Erik Ingeberg Fri, 03/12/2010 - 15:36

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

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

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

thanks for setting my stupid straight.

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

-J

Actions

This Discussion