03-13-2023 06:53 AM - last edited on 03-29-2023 12:23 AM by Translator
Hello.
2951(config)# router EIGRP 1
2951(config-router)# redistribute static metric 500000 1 255 1 1500
... then I want to remove these (and other) commands, so I execute
# copy start run.
QUESTION: Will the
copy start run
remove the above 2 commands?
Thank you.
Solved! Go to Solution.
03-13-2023 07:46 AM - last edited on 03-29-2023 02:08 AM by Translator
but that not make sense, if we want to safe config and do some change and if we want to point zero we can not do
copy start run ?
can you confirm
03-13-2023 07:58 AM - last edited on 03-29-2023 02:09 AM by Translator
Yes, I confirm.
Regarding not making sense, depends what you are trying to do.
Cisco's traditional way of restoring running like startup is
reload
. ; )
For sometime now, on some platforms, Cisco supports an optional rollback feature.
03-13-2023 08:01 AM - last edited on 03-29-2023 02:10 AM by Translator
Does
reload
reboot device? (If so, that is not always a desired option.)
03-13-2023 08:42 AM - last edited on 03-29-2023 02:11 AM by Translator
"Does
reload
reboot device? (If so, that is not always a desired option.)"
Yes and often not desired.
See whether your platforms support any of the following:
You might also look at the other guide's sections.
Possibly using (if platform supported) the
configreplace
command is exactly what you want. (Sorry, I forgot about this latter command.)
03-13-2023 07:59 AM
Goal is not to save config, goal is to put config in garbage. Goal is to rollback to old config.
03-13-2023 07:51 AM - last edited on 03-29-2023 02:12 AM by Translator
Thank you Joseph.
OK, this is important, because I have had Cisco TACs contradict your statement, and it was during a major crisis. (I have no reason to believe you are incorrect.)
So may you please really doublecheck confirm that
copy start run
ONLY MERGES the startup config, and DOES NOT REPLACE the startup config?
Thank you.
03-13-2023 07:57 AM - last edited on 03-29-2023 02:13 AM by Translator
Furthermore...
1. Does the different command
copy run start
ONLY MERGE the running config to the startup config, or does it REPLACE the startup config?
2. If I want the box to have the exact running config that I saved 2 weeks ago to a tftp server, what are the commands I should execute?
Thank you.
03-13-2023 08:04 AM - last edited on 03-29-2023 02:13 AM by Translator
#1 does a replace.
#2 copy tftp:xxx start
Reload
03-13-2023 08:02 AM
Positive for classical IOS. Pretty certain for IOS-XE. Unsure about IOS-XR or Nexus OSs.
03-13-2023 09:52 AM - last edited on 03-29-2023 02:15 AM by Translator
"(I have no reason to believe you are incorrect.)"
Perhaps not, but one time I thought I made a mistake, but I was mistaken. ; )
Seriously, though, I'm not always 100% accurate, or certain, which is why so many of my comments have something like "I recall (?)" and my memory ain't what it used to be, laugh.
". . . because I have had Cisco TACs contradict your statement . . ."
Yea, well, they too sometimes get things wrong, but on the whole, they are pretty darn good.
Anyway, your (noted) own experience contradicts what you say TAC said, additionally the Cisco reference I provided contradicts them too.
Actually, my biggest concern was whether Cisco revised how copying into the running configuration works, in the latest IOS variants, especially since @Kasun Bandara [a VIP with CCDP and CCNP] and @sidshas03 didn't appear to "know" how copy start run actually worked, the way I recall it worked. (Again, I wondered, had it changed?)
Regarding @MHM Cisco World (another very knowledgeable VIP), he too seemed unaware of how copy start run actually worked too, but he also seemed to misunderstand your OP.
Again, my memory also ain't what it used to be, but the reason I was positive about classic IOS, in the past, I've taken advantage of this "feature" multiple times. (I also now remember using the configurereplace, but rarely. My favorite command was
show archive config differences
.)
03-13-2023 08:03 AM
@jmaxwellUSAF @Joseph W. Doherty
I need to check before answer. there is something missing here .
thanks
MHM
03-13-2023 08:36 AM
Use 'configure replace' Instead of 'copy start run' - PacketLife.net
This means that running configuration lines that aren't in the startup configuration won't be overwritten or removed. The result is usually a messy, incomplete configuration.
that why every one give different answer, because we answer what we try before and in reality it messy.
03-13-2023 09:07 AM - last edited on 03-29-2023 02:19 AM by Translator
BTW, there's a bit of a difference between
configurereplace and configure replace
(actually the reason I suggested the former).
No prerequisite configuration is needed to use the
configure
replace
command
for
configuration replace:
You must create a configuration archive before . . .
03-13-2023 10:07 AM - edited 03-14-2023 02:59 AM
Many thanks for your comment
Always you are super in your comment.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide