running config vs startup

Unanswered Question
Jul 10th, 2007
User Badges:

Hi.


Smb can answer - how i can replace running config on startup config comlpitly? withou reload cisco. I can't use copy startup runnig config - it is not correct.


Snks.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.8 (4 ratings)
Loading.
mohammedmahmoud Tue, 07/10/2007 - 03:36
User Badges:
  • Green, 3000 points or more

Hi,


Running configuration is stored on the RAM, while startup configuration is stored on the NVRAM, you can use "copy run start", note that the running configuration reflects the configuration that the router is using while it is running now, if you copy it to startup the router will use this same configuration at reload, you don't need to reload the router as the configuration you have stored in start-up is the configuration which the router is already using now, please correct me if i understood your question in a wrong way.


HTH,

Mohammed Mahmoud.

guruprasadr Tue, 07/10/2007 - 03:44
User Badges:
  • Gold, 750 points or more

Hi,


Clear definition provided by Mohammed.


To copy the currently running active configuration to NVRAM, i.e., to save a changed running configuration to the startup configuration so it will be used the next time you reload the router, use the following command:

Router#copy running-config startup-config


This command loads the startup configuration stored in NVRAM into RAM and makes it the active running configuration.

Router#copy startup-config running-config



Pls Rate if HELPS



Best Regards,


Guru Prasad R

kudachkin Tue, 07/10/2007 - 04:13
User Badges:

No, i mean.

When u have in startup

***************************

fa0/0

ip add 10.x.x.x 255.x.x.x

**************************

and in running

*************************

fa0/0

description testtest

ip add 12.x.x.x 255.x.x.x

*************************

and u use copy startup running.


u have in running

***************************

fa0/0

description testtest

ip add 12.x.x.x 255.x.x.x

**************************

but i nead have

***************************

fa0/0

ip add 10.x.x.x 255.x.x.x

**************************

mohammedmahmoud Tue, 07/10/2007 - 04:27
User Badges:
  • Green, 3000 points or more

Hi,


Its ok you can do it with no need to reload the router as i've explained earlier.


HTH,

Mohammed Mahmoud.

kudachkin Tue, 07/10/2007 - 04:36
User Badges:

No...

I mean when i change smth in running config, I can't abort change , if i use copy startup runnig

mohammedmahmoud Tue, 07/10/2007 - 04:42
User Badges:
  • Green, 3000 points or more

Hi,


Ok, if you want to restore only something from the startup configuration and not to replace the whole configuration, you can do show startup-config, and just copy the intended configuration and copy and paste them in the current configuration and here you are they will be present in the running configuration, i hope that i've got you right this time.


HTH,

Mohammed Mahmoud.

kudachkin Tue, 07/10/2007 - 04:58
User Badges:

Yes. U right. I can replace thing both in running and startup - like ip add x.x.x.x x.x.x.x. But if thing be in runing and not be in startup - after copy startup running we have thing in runnig.

***********

SMTH like

description

Richard Burts Tue, 07/10/2007 - 08:14
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Yuri


I understand what you are asking is the ability to do a complete replacement of the running config with the content of the startup config. Unfortunately the only way to do that is to reload. The architecture of IOS does not allow a complete replacement while it is running.


Perhaps it will be helpful to understand that the behavior of copy is different depending on which direction it is copying. If you are copying from running to startup then it is a complete replacement. But if you are copying from startup to running then it is not a complete replacement but is an overlay. And you are right that if the running config has a description on an interface and the startup does not, when you copy from startup to running the description will still be there. That is just how IOS works.


The only way that I know of to get what you are asking for is to manually build a config file that will copy some elements from startup to put into running (which replace existing elements - like IP addresses) and then manually put in statements to remove things from running that you no longer want to have there. It is not automated, and I know that is part of what you want. But it is the only way that I know of to get the result that you want.


HTH


Rick

mohammedmahmoud Tue, 07/10/2007 - 10:17
User Badges:
  • Green, 3000 points or more

Hi Rick,


Nice explaination as always :) i think that i've answered with nearly the same work around in my last post, but i think that your words should clear the fog in front of the original poster, i can't tell you how glade is it to have you around :)


I've also came across this feature a while ago, what do you think about it Rick:

Configuration Replace and Configuration Rollback

http://www.cisco.com/en/US/products/sw/iosswrel/ps5207/products_feature_guide09186a0080356ea5.html



BR,

Mohammed Mahmoud.

kamleshyadav Wed, 07/11/2007 - 12:15
User Badges:

Hi Rick,


This was really very nice explanation.



Thanks

Kamlesh

kudachkin Wed, 07/11/2007 - 23:29
User Badges:

configure replace nvram:startup-config list


This thing is real solve my problem.


Sanks a lot.

Actions

This Discussion