Deleting Vlan database

Unanswered Question
Jan 4th, 2006

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 0 (0 ratings)
DWAM_2 Wed, 01/04/2006 - 02:45

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

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

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.

gpauwen Wed, 01/04/2006 - 03:47

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

anandanarayana Wed, 01/04/2006 - 04:34

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

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

Actions

Login or Register to take actions

This Discussion

Posted January 4, 2006 at 2:14 AM
Stats:
Replies:6 Avg. Rating:
Views:1446 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard

Rank Username Points
1 2,069
2 1,732
3 1,675
4 1,624
5 1,529