cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
367
Views
1
Helpful
3
Replies

apply config-file

Johnson_Mo
Level 1
Level 1

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 

 

3 Replies 3

pieterh
VIP
VIP

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)

thanks for the wonderful response!

Joseph W. Doherty
Hall of Fame
Hall of Fame

See if your IOS supports the "configure replace" command.

Review Cisco Networking for a $25 gift card