Deleting Vlan database

Unanswered Question
Jan 4th, 2006
User Badges:

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
DWAM_2 Wed, 01/04/2006 - 02:45
User Badges:

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.

cypher.jay Wed, 01/04/2006 - 02:57
User Badges:

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?

DWAM_2 Wed, 01/04/2006 - 03:31
User Badges:

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.

Georg Pauwen Wed, 01/04/2006 - 03:47
User Badges:
  • Green, 3000 points or more
  • Cisco Designated VIP,

    2017 WAN

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

Anand Narayana Wed, 01/04/2006 - 04:34
User Badges:
  • Silver, 250 points or more

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 Wed, 01/04/2006 - 06:32
User Badges:
  • Purple, 4500 points or more

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 Tue, 05/17/2016 - 12:23
User Badges:

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!

Actions

This Discussion