09-10-2013 04:16 PM - edited 03-11-2019 07:36 PM
I have 5500s, both 7.2, 8.2, and 8.4.
What are the commands to load a file in flash into the running-config at startup?
I don't want the startup file.
I tried the boot config flash:/saved_config, but it is not working.
I'm guessing I need to change the config-reg, but it's a bit confusing.
thanks.
Solved! Go to Solution.
09-10-2013 09:01 PM
Hello Jimmy,
So you want to set a file for the next time the ASA boots
boot config flash://test.cfg
By default, the ASA boots from a startup configuration that is a hidden file. You can alternatively set any configuration to be the startup configuration by entering the following command:
hostname(config)# boot config {disk0:/ | disk1:/}[path/]filename
For more information about Core and Security Networking follow my website at http://laguiadelnetworking.com
Any question contact me at jcarvaja@laguiadelnetworking.com
Cheers,
Julio Carvajal Segura
09-10-2013 09:01 PM
Hello Jimmy,
So you want to set a file for the next time the ASA boots
boot config flash://test.cfg
By default, the ASA boots from a startup configuration that is a hidden file. You can alternatively set any configuration to be the startup configuration by entering the following command:
hostname(config)# boot config {disk0:/ | disk1:/}[path/]filename
For more information about Core and Security Networking follow my website at http://laguiadelnetworking.com
Any question contact me at jcarvaja@laguiadelnetworking.com
Cheers,
Julio Carvajal Segura
09-11-2013 04:29 AM
Thanks Julio,
I notice two slashes e.g. "flash://test.cfg"
The text books say one slash?
What am I missing?
jc
09-11-2013 06:06 AM
I found the missing concept. When you use the boot config command, then any "copy run start" command overwrites the file in flash that was specifed, as well as the startup config. Very odd.
05-12-2016 06:36 AM
Hey JimmyC :)
Actually - not odd. Usually the startup-config is NOT visible on the ASA. Once you set the boot variable (either through CLI or ASDM) the startup-config becomes "just visible" in flash.
I recently had a similar situation - needed to change IP-Adresses and routing on the outside interface of an ASA without having access to the console - just SSH and or ASDM. Here is what I've found out - what I did.
Now - the "some text-file" in flash would be overwritten with the actual running-config of the ASA - ok.
Try this at home with an ASA you have access to via console-cable! Lets do the following:
What your going to see - well - forget what you see through the boot process. The more interesting part is: will my changes come into play i.e. will I see them now in the running-config?! No I won't! Why? There's this little innocent line at the end of your startup-config "..crypto checksum.."
What could you do instead? Well - create a text-file with exactly the commands you need, to change, what you want to be changed. In my case change interface configuration of the outside and routing (no route.. and route ....)
I thought that the running-config would be overwritten - hm - it's merging, to be true. The ASA would only alter the parts of running-configuration that I had mentioned in the file I had uploaded to flash and copied to running-config.
That's how I did it - hope it helps clear out the skys?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide