VLAN Database Lost When Restarting? - Saving VLAN.dat To NVRam
Written by LBSources from http://www.gns3-labs.com on November 30th, 2008 | 3 CommentsCame across a post online that I thought would help those who have been through the problem and upset of losing VLAN configurations once a router in GNS3 or Dynamips is reloaded. This post explains how to prevent this from happening.
ok, when you restart your Router or you turn off the GNS3, the VLAN configuration is missing, why? Because all the VLAN information is save to file vlan.dat. Yes, you know that already.
So, this is the step to save the configuration :
K-ROUTER#erase flash
Erasing the flash filesystem will remove all files! Continue? [confirm]
Erasing device… eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee …erased
Erase of flash: complete
K-ROUTER#squeeze flash:
Squeeze operation may take a while. Continue? [confirm]
squeeze in progress…
Squeeze of flash complete
K-ROUTER#conf t
Enter configuration commands, one per line. End with CNTL/Z.
K-ROUTER(config)#vtp file nvram:vlan.dat
Setting device to store VLAN database at filename nvram:vlan.dat.
K-ROUTER(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)
K-ROUTER(config)#
K-ROUTER(config)#do wr mem
Building configuration…
[OK]
ok, after that you can configure your vlan, vtp without worrying will lost the information.
Credit to the original blog where I found this: GNS3 : Saving VLAN Information
Enjoy ..
LBS
910 views









December 11th, 2008 at 3:57 pm
when i save gns3 routers toplogy , and load it again ,i lost the all configration.
how can i solve this problm?
December 11th, 2008 at 4:01 pm
@elsayed make sure you have a working directory specified and use “copy running-config startup-config” often. Or create a new Project from the package provided. That will create a working directory for you specific to the topology. You should though always save your configs often.
December 21st, 2008 at 9:12 am
wow now i can add more vlan….