Reloading config from Dynamips/Dynagen

I was having difficulty to save configuration after few labs I did with Dynamips. Saving config and reload the dynamips doesn’t work and I previously I have to copy and paste all the latest config I’ve had.

There is actually a trick to save config in Dynamips to text files (.cfg) and after starting the devices, you can import it back and run a command in your cisco device to load it.

Here is the sequence.

1. Once you’re done with your lab, copy the config using wr or copy run start to copy it to nvram:startup-config
2. Then on your Dynagen console, you can save your config to a directory export /all "directory_name" on your Dynagen console.
3. Next time you reload your dynamips, what you need to do is import /all "directory_name
4. Then on your Cisco devices run command configuration replace nvram:startup-config force
5. Wait and you’re all set.

2 thoughts on “Reloading config from Dynamips/Dynagen

  1. Pingback: Reloading IOS config at CLI for Dynamips/Dynagen | David Sudjiman | My Etherealmind

  2. Another way to do it: if you keep the same working directory and start the topology without “cfg=” on the .net file the devices start with the last saved config.

    You can then skip the “config replace” command.

    HTH

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>