Correct way to replace config on asa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2014 09:32 AM - edited 03-11-2019 08:40 PM
Hi all
If I want to replace the current config on my asa what is the best way of doing it ?
- Labels:
-
NGFW Firewalls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2014 10:24 AM
You can copy and paste the new configuration in after you have erased the old configuration. I suggest copy pasting approx. 10 lines at a time. This makes it easier to troubleshoot if you see any errors.
There are two ways of erasing your config. the first way is to use the command configure factory-default [ip_address [mask]] This will set the ASA config to the way it was when you first recieved it, so there will be some configuration left on it such as boot system,DHCP, ASDM, etc. The IP address is the management IP you will used to connect to the ASA if you are not connecting via a serial cable.
The other way is to use the command write erase. This deletes all configuration from the ASA. Here you will need to configure everything from scratch
Now to copy your config into the ASA again you could either copy paste your config from notepad, I suggest copying around 10 lines at a time, as this makes it easier to troubleshoot if you see any errors.
Another way is to copy the running config straight from a TFTP server to the running-config
copy tftp running-config
just remember to save the running-config to the startup-config
--
Please remember to rate and select a correct answer
Please remember to select a correct answer and rate helpful posts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2014 11:15 AM
Hi
Suppose we already have a config in there and want to replace it, if we do a copy tftp run it will merge the config.
Can we do a copy tftp startup config to replace the startup config then reload?
What is the command to change the config that it will boot next from ?
And if we changed this would we still need to do a copy run start after ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2014 12:04 PM
Suppose we already have a config in there and want to replace it, if we do a copy tftp run it will merge the config.
That is correct.
Can we do a copy tftp startup config to replace the startup config then reload?
This is an option you could do.
What is the command to change the config that it will boot next from ?And if we changed this would we still need to do a copy run start after ?
boot config disk0:/
This will set the boot config file to whichever file you want to use as your startup config file. Just remember that you will no long be saving the running config to the startup if you use this command. You will need to save it to the
Here is a good link on file management on the ASA
http://www.cisco.com/en/US/docs/security/asa/asa84/configuration/guide/admin_swconfig.html#wp1044108
--
Please remember to rate and select a correct answer
Please remember to select a correct answer and rate helpful posts
