Saving VLAN.dat To NVRam – How to save VLAN.dat to different place – VLAN.dat redirection

VLANs are saved to file VLAN.dat. With this commands we will prevent the loss of VLAN.dat :
Switch1#erase flash Erasing the flash filesystem will remove all files! Continue? [confirm] Erasing device… eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee …erased Erase of flash: complete Switch1#squeeze flash: Squeeze operation may take a while. Continue? [confirm] squeeze in progress… Squeeze of flash complete Switch1#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch1(config)#vtp file nvram:vlan.dat Setting device to store VLAN database at filename nvram:vlan.dat.
With this command we have redirected the place for saving the VLAN.dat to NVRam.
Switch1(config)#do dir nvram: Directory of nvram:/ 124 -rw- 0 startup-config 125 —- 0 private-config 1 -rw- 600 vlan.dat 129016 bytes total (127940 bytes free) Switch1(config)# Switch1(config)#do wr mem Building configuration… [OK]
Did U do that on GNS3 ver 1.1 ?? or real equipment
It’s on real equipment. I am not sure you can do that in GNS3.
It can be done on GNS3 v1.39 .
You also need to right click the “switch” –> under “Memories and disks” you should uncheck “Automatically delete NVRAM and disk files” –> OK
Save configuration and the vlan.dat file will not be erased.