01-04-2006 02:14 AM - edited 03-03-2019 01:19 AM
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
01-04-2006 02:45 AM
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.
01-04-2006 02:57 AM
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?
01-04-2006 03:31 AM
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.
07-30-2018 01:20 PM
01-30-2020 06:31 AM
01-04-2006 03:47 AM
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
01-04-2006 04:34 AM
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.
01-04-2006 06:32 AM
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 ???
05-17-2016 12:23 PM
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!
09-22-2019 10:32 AM
I had the same issue.. I tried below steps and it worked.
Write erase.
Delete vlan.dat
Reload switch.
Pls check.
05-23-2018 02:12 PM
its a bug in the code
07-30-2018 03:31 PM
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.
08-01-2018 09:38 AM - edited 08-01-2018 09:42 AM
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.
08-17-2019 05:29 PM - edited 08-17-2019 05:43 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide