cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
38242
Views
0
Helpful
5
Replies

deleting multiple interface vlans easily

millerjw
Level 1
Level 1

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

5 Replies 5

Erik Ingeberg
Level 1
Level 1

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
VIP Alumni
VIP Alumni

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
Hall of Fame
Hall of Fame

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

thanks for setting my stupid straight.

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

-J

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

Getting Started

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:

Review Cisco Networking products for a $25 gift card