cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1985
Views
0
Helpful
2
Replies

ASA 5505 configuration file switching

itlklubos6
Level 1
Level 1
Hei,
I have difficulty to understand how the commands for setting the configuration file path are working.
I have two configuration files in the firewall, both in the disk0:/
A.cfg
B.cfg
Scenario:
------------
The active configuration is B (i. e. loaded from the file B.cfg and running)
Task:
-------
The configuration file B.cfg is obsolete/wrong, and I want to use the config file A.cfg instead.
What I have done:
-----------------
firewall(config)# boot config disk0:/A.cfg
firewall(config)# exit
firewall# show bootvar
this will show : CONFIG_FILE variable: disk0:/B.cfg
                 Current CONFIG_FILE variable: disk0:/A.cfg
According what I have read, to set the CONFIG_FILE variable I need to save the running configuration:
firewall# copy runnning-config startup-config
BUT:
------
That command will overwrite the correct A.cfg with a B.cfg. And also, the "copy" actuallly performs the "merge". Than the A.cfg is loaded, but with the content overwritten by B.cfg.
Question:
------------
How can I switch between multiple config files without overwriting them?
Thanks for help.
1 Accepted Solution

Accepted Solutions

You would need to remove the running config completely and then copy the A.cfg into the running config.

clear configure all

copy disk0:A.cfg running-config

boot config disk0:A.cfg  <-- if it is not present in the A.cfg file.

--

Please remember to select a correct answer and rate helpful posts

--
Please remember to select a correct answer and rate helpful posts

View solution in original post

2 Replies 2

You would need to remove the running config completely and then copy the A.cfg into the running config.

clear configure all

copy disk0:A.cfg running-config

boot config disk0:A.cfg  <-- if it is not present in the A.cfg file.

--

Please remember to select a correct answer and rate helpful posts

--
Please remember to select a correct answer and rate helpful posts

Thanks for help.

Review Cisco Networking for a $25 gift card