cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
116773
Views
24
Helpful
14
Replies

Deleting Vlan database

cypher.jay
Level 1
Level 1

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

14 Replies 14

DWAM_2
Level 3
Level 3

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.

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?

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.

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.

Thanks, i had the same issue, it worked for me

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

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.

glen.grant
VIP Alumni
VIP Alumni

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 ???

ray-smith
Level 1
Level 1

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!

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

 

Write erase. 

Delete vlan.dat

Reload switch. 

 

Pls check. 

its a bug in the code

tm123
Level 1
Level 1

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.

 

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.

 

 

 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

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.

 

 

 

 

Review Cisco Networking for a $25 gift card