How to save a Cisco ASA Firewall Configuration in GNS3 Labs?

 GNS3  is the best simulator to run the Cisco ASA firewall and you can prepare your Cisco Security exam using GNS3.   GNS3 is the best software to emulate ASA firewall but there are some tricky points that you might be disappointing.

I have done reading blogs, watching YouTube to figure out how to save and gave some time to test myself and I’ll share what I’ve done in GNS3 how to create Flash in Qemu, how to setup Cisco ASA and how to save the Cisco ASA config to the flash. Once you are able to config it will be more easier to do your study further on the configuration of Cisco ASA firewall via Cisco ASDM.

Save Running Configuration to Startup Configuration on Cisco ASA Firewall

If you use Cisco ASA Firewall in GNS3, you’ll be notice that “wr mem” command can’t be used to save a configuration.
The following error message occurs once you run “wr mem”.

Cisco-asa# wr mem
Building configuration…
Cryptochecksum: 6e33e06b 255d8b92 90c27d70 9f5b4de4
%Error opening disk0:/.private/startup-config (No such file or directory)
Error executing command
[FAILED]
Cisco-asa#

SOLUTION

Instead of using “wr mem” or Copy running-config startup-config ; use the following command to save your configuration to Cisco ASA Firewall in GNS3.

copy run disk0:/.private/startup-config

Cisco-asa(config)# copy run disk0:/.private/startup-config
Source filename [running-config]?
Destination filename [/.private/startup-config]?
%Warning:There is a file already existing with this name
Do you want to over write? [confirm]
Cryptochecksum: 6e33e06b 255d8b92 90c27d70 9f5b4de4
1471 bytes copied in 2.20 secs (735 bytes/sec)open(ffsdev/2/write/41) failed
open(ffsdev/2/write/40) failed
Cisco-asa(config)#

 

Filed Under: GNS3

Tags:

About the Author:

RSSComments (10)

Leave a Reply | Trackback URL

  1. Cherry says:

    Hi All,

    Recently i’m trying to emulate Cisco asa Firewall in GNS3 but im not able to save the configuration after i start the Cisco asa but this article is very nice and my problem has been solved.

    Thanks for Sharing!

    Cherry

  2. John says:

    Use the following commands and this will help you.

    cisco-asa# copy running-config disk0:/.private/running-config
    cisco-asa# copy disk0:/.private/running-config disk0:/.private/startup-config
    cisco-asa# configure terminal
    cisco-asa(config)# boot config disk0:/.private/startup-config

  3. Ganesh says:

    It works……superb
    Thanks for sharing..

  4. Khan says:

    Finally got the ASA to work, now I tried to save my config using wr -m or copy run start. I get not enough space to save config. Any and all help would be greatly appreciated

    • Raghu says:

      Saving Cisco ASA Configuration in GNS3
      ======================================

      1st command
      cisco-asa# copy running-config disk0:/.private/running-config

      2nd command
      cisco-asa# copy disk0:/.private/running-config disk0:/.private/startup-config

      3nd command
      cisco-asa# configure terminal
      cisco-asa(config)# boot config disk0:/.private/startup-config
      cisco-asa(config)# exit

  5. Limoli says:

    Excellent beat ! I would like to apprentice at the same time as you amend your website, how could i subscribe for a weblog web site? The account helped me a appropriate deal. I have been a little bit familiar of this your broadcast offered vivid transparent concept

  6. Amit says:

    GNS3 is the best software tool to emulate the Cisco ASA firewall and you can prepare your Cisco Security exam using GNS3 but there are some tricky points that you might be disappointing. But now you can overcome one of them.

    Amit

  7. Kiran says:

    This is very nice, Now I am able to save Cisco ASA Firewall configuration in GNS3. Thanks for sharing.

  8. peter says:

    This is the error that I got after trying to use your solution.

    Error opening disk0:/.private/startup-config (No such file or directory).
    What should I do to fix this problem?
    I also tried to use the config-register 0x1 but it didn’t work.
    “Unable to set the configuration register”.

    Thank you so much, guys. I really appreciate it.

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.