Cisco Router Replace Config From File

Ive been trying to run the Replace and Roleback command however it keeps the old configuration

How do Iset a new config file for the Router to use as the new startup config, totally removing the old config?
LVL 1
TestMonkeyAsked:
Who is Participating?
 
TestMonkeyAuthor Commented:
Just did a complete reconfigure, ended up using the Console cable
0
 
Istvan KalmarHead of IT Security Division Commented:
Hi,

You able to copy the config:

copy run flash:old.txt

If you want to use old config:

copy flash:old.txt start

0
 
Don JohnstonInstructorCommented:
Please indicate the name of the new config file and it's location.

And post the command you are using to attempt the replace operation.

Also, what platform and IOS version are you running?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
TestMonkeyAuthor Commented:
Im running 15.0.1 Enterprise Services

I dont want to use the old config, id like to use a new one that I have on flash which is conf.txt, everytime I run it, it seems to do the rollback commands
0
 
Don JohnstonInstructorCommented:
Let's try this one more time.

And post the command you are using to attempt the replace operation.

Also, what platform and IOS version are you running?
0
 
Istvan KalmarHead of IT Security Division Commented:
there is no roleback commands on cisco routers, only if you save the running-config or startup-config to flash or tftp and copy it if you need....
0
 
TestMonkeyAuthor Commented:
configure replace flash:conf.txt as well as configure replace flash:conf,txt force

Cisco 2821, IOS is 15.0.1 Enterprise Services which I had previously answered
0
 
Don JohnstonInstructorCommented:
Do you get any error message when you issue the command?

Does any part of the config get replaced?

Is the source file in the correct format? (The actual format of the commands in the archived file is rather specific)

0
 
TestMonkeyAuthor Commented:
Not an error, just says Rollback Commands failed
0
 
Istvan KalmarHead of IT Security Division Commented:
try copy
0
 
Don JohnstonInstructorCommented:
Please post the output of the session.
0
 
Istvan KalmarHead of IT Security Division Commented:
When using the configure replace command as an alternative to the copy source-url running-config command, increases efficiency and prevents risk of service outages by not reapplying existing commands in the current running configuration.
0
 
Don JohnstonInstructorCommented:
It worked with the console cable but with telnet?
0
 
TestMonkeyAuthor Commented:
Hey Don

Nope, I just reset the router to factory defaults and built from scratch vs the replace config
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.