cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
251
Views
0
Helpful
3
Replies

Deleting Multiple Vlans at one!

pmpesha
Level 1
Level 1
3 Replies 3

pmpesha
Level 1
Level 1

How can I delete, let say 10 vlans at once. Is there such a command or something similer to the "range" command? Thank you.

In CAT OS you can use clear vlan command

Console> (enable) clear vlan 950-955

This command will deactivate all ports on vlan(s) 950-955

Do you want to continue(y/n) [n]?y

VTP advertisements transmitting temporarily stopped,

and will resume after the command finishes.

Vlan 950 deleted

Vlan 951 deleted

Vlan 952 deleted

Vlan 953 deleted

Vlan 954 deleted

Vlan 955 deleted

Console> (enable)

In IOS, depending on h/w and sw, you can can use no vlan command

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#no vlan 950-955

Switch(config)#

Thank you very much prkrishn, you know I was trying to delete them from the vlan database. Thanks, indeed.