Delete flash:vlan.dat wiped out everything!
bluesjunior23
Member Posts: 12 ■□□□□□□□□□
in CCNA & CCENT
Hey guys, i wanted to wipe out the vlan config on a switch i am learning on so i ran the "delete flash:vlan.dat command. However, upon reboot of the router it booted to the initial config dialog... I must have wiped out my startup config? How can i delete JUST the vlan.dat file in flash? Thanks so much for your help!!!
btw: here's another bonus question ive been wondering... is there a way to reboot a switch from the ios? thanks again.
btw: here's another bonus question ive been wondering... is there a way to reboot a switch from the ios? thanks again.
Comments
-
NPA24 Member Posts: 588 ■■□□□□□□□□The only way to get to an option to delete the vlan.dat is by deleting your entire configuration on the switch.
I'm not sure that you can just delete vlan.dat file by itself.
Most of the time you can just delete the vlan in privilege mode.
For example:
SwitchA#no vlan 1 -
EdTheLad Member Posts: 2,111 ■■■■□□□□□□adam21983 wrote:Hey guys, i wanted to wipe out the vlan config on a switch i am learning on so i ran the "delete flash:vlan.dat command. However, upon reboot of the router it booted to the initial config dialog... I must have wiped out my startup config? How can i delete JUST the vlan.dat file in flash? Thanks so much for your help!!!
btw: here's another bonus question ive been wondering... is there a way to reboot a switch from the ios? thanks again.
You shouldn't of had a problem with what you did, are you sure you saved the running-config to nvram? "wr mem" or "copy running start" ?
To reboot the switch use the command "reload".Networking, sometimes i love it, mostly i hate it.Its all about the $$$$ -
bluesjunior23 Member Posts: 12 ■□□□□□□□□□Doh, Im such a newb... thanks for that.. .i think i forgot to copy run start.... i appreciate your help!
-
kryolla Member Posts: 785NPA24 wrote:The only way to get to an option to delete the vlan.dat is by deleting your entire configuration on the switch.
I'm not sure that you can just delete vlan.dat file by itself.
Most of the time you can just delete the vlan in privilege mode.
For example:
SwitchA#no vlan 1
This is more CCNP but the only way vlan is stored in memory is when vtp is set up as client other than that it is stored in vlan.dat vtp mode server and transparent
To test it create a vlan and do a sh run and see if it is there also you can't create vlan in client mode
no vlan command is good if you want to delete just a certain vlan but when you when delete the start up config the vlan info is still there so you would also delete vlan.datStudying for CCIE and drinking Home Brew