03-12-2010 02:52 PM - edited 03-06-2019 10:07 AM
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
03-12-2010 03:36 PM
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.
03-12-2010 10:27 PM
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
03-14-2010 09:26 PM
To delete VLAN instances: no vlan 10,22-30,33,36
To delete VLAN interfaces: no interface range vlan <#> - <#> , <#>
03-15-2010 07:31 AM
thanks for setting my stupid straight.
I tried no int vlan range xx-xx and of course it didn't work.
-J
03-15-2010 02:18 PM
There's a space in between the "-".
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: