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 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 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:08 AM - last edited on 03-29-2023 12:26 AM by Translator
The
copy start run
command will not remove the above 2 commands. The
copy start run
command is used to save the current running configuration to the startup configuration file, and it does not affect the current running configuration. To remove the above 2 commands, the user should enter the configuration mode and use the
no
command followed by the respective commands.
2951(config)# router EIGRP 1
2951(config-router)# no redistribute static
This will remove the
redistribute static
command from the EIGRP configuration. Repeat this process for any other commands you wish to remove. After making the changes, you can then save the modified configuration to the startup configuration file using the
write memory
command, or the shorthand
copy run start
command.
03-13-2023 07:15 AM - last edited on 03-29-2023 12:27 AM by Translator
I believe you are confusing
copy start run with copy run start.
03-13-2023 07:17 AM - last edited on 03-29-2023 12:28 AM by Translator
no HE DONT CONFUSE
the correct is
copy run start
<<- this copy change in running to startup
03-13-2023 07:27 AM - last edited on 03-29-2023 12:29 AM by Translator
MHM, you are saying this statement is true?...
The copy start run
command will not remove the above 2 commands. The
copy start run
command is used to save the current running configuration to the startup configuration file, and it does not affect the current running configuration.
03-13-2023 07:41 AM
BTW believe some of your information is inaccurate.
03-13-2023 10:03 PM
@Joseph W. Doherty & @jmaxwellUSAF
I apologize for any confusion my previous response may have caused. I regret any negative impact my given statement may have had and I take full responsibility for my mistakes. Please know that I am committed to learning from this experience and making sure that I am always acting in a responsible and respectful manner within the community.
Thank you for all that you do to support and uplift the community. I value your contributions and leadership, and I want to make sure that I am showing up in a way that reflects the values of our community.
03-14-2023 07:09 AM
". . . I want to make sure that I am showing up in a way that reflects the values of our community."
IMO, you do!
03-13-2023 07:10 AM - edited 03-13-2023 08:41 AM
"copy start run" will copy your startup configuration to running configuration. if you run copy start run command and if your startup config dont have above eigrp config, it will erase in running config.
PS - its merging the config. not replacing.
03-13-2023 07:43 AM
BTW, believe some of your information is inaccurate.
03-13-2023 07:10 AM - last edited on 03-29-2023 02:21 AM by Translator
when remove the command you remove commands from run not startup.
if you want to change the config in startup also do
wr
command.
03-13-2023 07:24 AM - last edited on 03-29-2023 01:59 AM by Translator
in a 2951 I executed the
copy start run
with the goal of erasing a new config.
It seems this did NOT erase the EIGRP inserted config. The point of the question is to investigate whether
copy start run
will erase EIGRP configs in the (config-router#) mode.
So then, will
copy start run
erase this previous EIGRP command...
config-router# redistribute static redistribute static metric 500000 1 255 1 1500
? (My experience just suggested/proved it would not.)
03-13-2023 07:31 AM - last edited on 03-29-2023 02:05 AM by Translator
let check timeline
you add redistribute static
then do
wr <<- here the config is save in startup
then you do
copy start run
this will not delete the
redistribute
command under eigrp because you add in before to startup.
to check if I am right do
show startup <<- check the config in startup
03-13-2023 07:46 AM - last edited on 03-29-2023 02:05 AM by Translator
I never execute
wr (copy run start)
at all.
03-13-2023 07:39 AM
No, although it can change them.
This because copying any file into the running config is like you typing all the commands into an existing running config. I.e. it's merge not a replace operation.
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