cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2246
Views
13
Helpful
28
Replies

Will the "copy start run" remove the above 2 commands?

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.

2 Accepted Solutions

Accepted Solutions

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.

View solution in original post

"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:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/config-mgmt/configuration/15-sy/config-mgmt-15-sy-book/cm-config-rollback.html

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.)

View solution in original post

28 Replies 28

sidshas03
Spotlight
Spotlight

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.

I believe you are confusing

copy start run with copy run start.

no HE DONT CONFUSE 
the correct is 

copy run start 

<<- this copy change in running to startup

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.

BTW believe some of your information is inaccurate.

@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.

". . . I want to make sure that I am showing up in a way that reflects the values of our community."

IMO, you do!

"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.

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

BTW, believe some of your information is inaccurate.

when remove the command you remove commands from run not startup. 
if you want to change the config in startup also do

wr

command.

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.)

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
 

I never execute

wr (copy run start) 

at all.

Joseph W. Doherty
Hall of Fame
Hall of Fame

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.

Review Cisco Networking for a $25 gift card