apply config-file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 04:43 PM - edited 09-07-2023 04:52 PM
Hi team,
after copying a config file from tftp to cisco router, in order for the config file to be applied, I reload the device. is there a command to quickly force the config file to take place?
I did the followings and still the config file wont apply. this is a test lab on GNS3
Router# Copy tftp:config.txt flash:
Once the copy is done
Router# copy flash:config.txt running-config
Router# Wr mem
thanks
- Labels:
-
Other Routing

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2023 05:43 AM - edited 09-08-2023 05:56 AM
Router# Copy tftp:config.txt flash:
Once the copy is done
Router# copy flash:config.txt running-config
that should do the job!
NB! the copy to running-config is ADDING lines to the config, so it will not replace the current config
copy to running-config will not remove lines unless explicitly commanded in the config.txt ,
but it will replace a line like "hostname...." and it will remove lines if explicit commanded like "no access-list ...."
if you want to replace the whole config you can
Copy tftp:config.txt startup-config
reload ! (dont save the config when asked)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2023 03:04 PM
thanks for the wonderful response!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2023 06:21 PM
See if your IOS supports the "configure replace" command.
