Edison Ortiz Fri, 10/16/2009 - 09:41


We need more information.

Hardware in question and the exact command being executed.

Can you copy and paste the output while trying to delete the file?

In some platforms, you may need to use the erase command instead of the delete command while removing objects from the file system



sivaprakasam81 Fri, 10/16/2009 - 09:50

The information follows,

Cisco 4948 Switch. Cisco IOS.

Switch#delete cat4500:vlan.dat

error% permission denied

Thank you,


sivaprakasam81 Fri, 10/16/2009 - 10:33

1. I see that the directory is available with Vlan info:

Switch#dir cat4000_flash:

Directory of cat4000_flash:/

1 -rw- 0 vlan.dat

524280 bytes total (524280 bytes free)

2. I use erase command and it is successful

Switch#erase cat4000_flash:

Erasing the cat4000_flash filesystem will remove all files! Continue? [confirm]y


Erase of cat4000_flash: complete

3. It still has the vlan information. how can i delete those vlan info.

Switch#show vlan

VLAN Name Status Ports

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

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

Gi1/5, Gi1/6, Gi1/7, Gi1/8

Gi1/9, Gi1/10, Gi1/11, Gi1/12

Gi1/13, Gi1/14, Gi1/15, Gi1/16

Gi1/17, Gi1/18, Gi1/19, Gi1/20

Gi1/21, Gi1/22, Gi1/23, Gi1/24

Gi1/25, Gi1/26, Gi1/27, Gi1/28

Gi1/29, Gi1/30, Gi1/31, Gi1/32

Gi1/33, Gi1/34, Gi1/35, Gi1/36

Gi1/37, Gi1/38, Gi1/39, Gi1/40

Gi1/41, Gi1/42, Gi1/43, Gi1/44

Gi1/45, Gi1/46, Gi1/47, Gi1/48

2 Interconnect active

15 VLAN15 active

16 VLAN16 active

1002 fddi-default act/unsup

1003 token-ring-default act/unsup

1004 fddinet-default act/unsup

1005 trnet-default act/unsup

Thank you,


Giuseppe Larosa Fri, 10/16/2009 - 10:38

Hello Siva,

reload the switch now that the file is empty

>> 1 -rw- 0 vlan.dat

vlan.dat is read at startup

Hope to help


sivaprakasam81 Fri, 10/16/2009 - 11:17

Thank you for your inputs. YOu are right. When I reload the Switch, it again comes with VLAN.dat information. It seems I am loading the Customised Cisco IOS. How can I load the fresh OS from my desktop to 4948 Switch using Console port. I can access Switch# prompt also rommon>. Please provide steps to load Cisco IOS via Console port. I do not have the Ethernet port connected with the computer to perform tftp.

Thank you,


Edison Ortiz Fri, 10/16/2009 - 12:49

If you are getting the Vlan information again, you must verify you aren't connected to other switches where this information is stored. You must understand, the default setting is VTP server where information from other switches will be copied to this switch.

If you want to have a clear vlan.dat file (you will always have one, btw) - you need to shut down all inter-switch links - perform the erase command as I instructed then reboot.

After a reboot, you will have a new vlan.dat and no vlan information after typing 'show vlan' other than the default vlans.




This Discussion