cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

63175
Views
15
Helpful
13
Replies
Beginner

Deleting Vlan database

Hi, I tried deleting the vlan database on a 2950 switch. delete flash:/vlan.dat

however, after i reload the switch, the vlans are still there. Any ideas?

Also, is there any other way of deleting the vlan database w/o reloading? apart from manually deleting each vlan one-by-one

13 REPLIES 13
Participant

Re: Deleting Vlan database

Hello,

try to change 2950 to vtp mode transparent, write configuration and repeat your tasks

Normally it has to work when you delete vlan.dat and reload it.

Or is it an old ios version ?

Regards.

Beginner

Re: Deleting Vlan database

Hi.. done that too. Changing the vtp mode to transparent resets the config revision to 0, but the vlan database remains in the vlan.dat file. Therefore, by deleting that file & do a reload, vlans should be cleared, but it didn't.

The ios version is 12.1(22)EA6. Thanks for the response. Any ideas?

Participant

Re: Deleting Vlan database

Hello,

I have done the same operation (delete vlan.dat + reload) on a WS-C2950-24 with c2950-i6q4l2-mz.121-22.EA6.bin.

Switch#conf t

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

Switch(config)#vlan 2

Switch(config-vlan)#name toto

Switch#

00:08:06: %SYS-5-RELOAD: Reload requested

witch>sh vlan

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4

Fa0/5, Fa0/6, Fa0/7, Fa0/8

Fa0/9, Fa0/10, Fa0/11, Fa0/12

Fa0/13, Fa0/14, Fa0/15, Fa0/16

Fa0/17, Fa0/18, Fa0/19, Fa0/20

Fa0/21, Fa0/22, Fa0/23, Fa0/24

2 toto active

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

1004 fddinet-default act/unsup

1005 trnet-default act/unsup

Switch#delete vlan.dat

Delete filename [vlan.dat]?

Delete flash:vlan.dat? [confirm]

Switch#reload

Proceed with reload? [confirm]

00:00:50: %SYS-5-RELOAD: Reload requested

Switch>sh vlan

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4

Fa0/5, Fa0/6, Fa0/7, Fa0/8

Fa0/9, Fa0/10, Fa0/11, Fa0/12

Fa0/13, Fa0/14, Fa0/15, Fa0/16

Fa0/17, Fa0/18, Fa0/19, Fa0/20

Fa0/21, Fa0/22, Fa0/23, Fa0/24

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

1004 fddinet-default act/unsup

1005 trnet-default act/unsup

Switch#dir

Directory of flash:/

2 -rwx 109 Mar 01 1993 00:04:47 +00:00 info

3 -rwx 3110758 Mar 01 1993 00:06:29 +00:00 c2950-i6q4l2-mz.121-22.EA6.bin

4 drwx 4160 Mar 01 1993 00:07:04 +00:00 html

373 -rwx 109 Mar 01 1993 00:07:40 +00:00 info.ver

375 -rwx 5 Mar 01 1993 00:08:05 +00:00 private-config.text

377 -rwx 1098 Mar 01 1993 00:08:05 +00:00 config.text

7741440 bytes total (2992128 bytes free)

Switch#

So I don't understand why on your case, it doens't work. :/

I am interesting what is the behaviour.

Regards.

Highlighted
Beginner

Re: Deleting Vlan database

Hello,
I had a same issues, I tried as below
erase startup-config
delete flash:vlan.dat
Reload
it worked well.
this was from 3650 catalyst switch

Thanks.
VIP Mentor

Re: Deleting Vlan database

Hello,

I am not sure if that makes a difference, but your syntax should look like this:

Cat2950# delete flash:vlan.dat

In your original post, you have used ´delete flash:/vlan.dat

Regards,

GP

Frequent Contributor

Re: Deleting Vlan database

Hi jay,

even i have the same version 12.1.22.EA6, after deleting "delete flash:valn.dat" i just restarted the switch & then disconnected the trunking cabling which is connected to the 3550, all vlans got deleted. only if the trunking cable is connected,it gets the updates from the main switch, even though if you delete the flash:vlan.dat. try this option.

Advisor

Re: Deleting Vlan database

If you do a show vlan after deleteing the database and reloading what does it show ? Are you sure you are looking at the layer 2 vlan and not some leftover layer 3 SVI ???

Beginner

I had the same issue and got

I had the same issue and got it working by changing the vtp mode to server, then deleting the vlan.dat file and reloading the switch.  Once it came back up I changed the mode back to transparent and all was well.  Please keep in mind that I did this with the switch on my desk because changing the vtp mode to server while on the network could have dire consequences if on the network.  Cheers!

Cisco Employee

Re: I had the same issue and got

I had the same issue.. I tried below steps and it worked.

 

Write erase. 

Delete vlan.dat

Reload switch. 

 

Pls check. 

Re: Deleting Vlan database

its a bug in the code

Beginner

Re: Deleting Vlan database

Hi,

If necessary command to reset has been typed correctly.when you type reload it will ask if you want to save the response is no if not i think this is why you are having the problem.

steps as follow

#reload

system configuration has been modified.save? [yes/no] no

proceed with reload ? [confirm]<enter>

 

##thats all.

VIP Advisor

Re: Deleting Vlan database

 

Hello

If the switch gets its vlan.dat file deleted and then gets reloaded, It again could obtain the vtp database  if its stiill connected to the network, This is due to the VTP advertisements traversing the trunk from the existing live switch its connected to,.

 

Just disable the interconnect on the switch you wish to clear its vlan information from and delete the vlan.dat file or if you are remotely connected to the switch, change the vtp mode to transparent , save the changes and manually delete the vlan database and NOT the vlan.dat file.

 

 

 

 



kind regards
Paul

Please rate and mark posts accordingly if you have found any of the information provided useful.
It will hopefully assist others with similar issues in the future
Beginner

Re: Deleting Vlan database

because you are running an older version, please do the following on the cisco switch 2950

 

#delete vlan.dat

#delete filename [vlan.dat]?vlan.dat

#delete flash:vlan.dat[confirm] y

That should do it... I don't know why people are not helping others with an older version of IOS... He is asking a specific switch 2950 see his post and his version of OS and please don't say it works if you run the command on different OS version or a switch that is a different model. it does not help him.

 

 

 

 

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards