When to use copy start run
sendalot
Member Posts: 328
in CCNA & CCENT
So, I have a quick question for an IOS command.
When would you use "copy start run?"
If "copy run start" writes into NVRAM for next-boot, what does the first one do?
Thanks.
When would you use "copy start run?"
If "copy run start" writes into NVRAM for next-boot, what does the first one do?
Thanks.
Comments
-
Hondabuff Member Posts: 667 ■■■□□□□□□□Thats if you used a TFTP server to import your saved config to the startup location. To make it active you would do the copy start run and enable any down interface. I have used this on a switch and made a backup of the startup config incase of failure.“The problem with quotes on the Internet is that you can’t always be sure of their authenticity.” ~Abraham Lincoln
-
networker050184 Mod Posts: 11,962 ModIt writes from NVRAM to the current running config. The thing to keep in mind is that this is a merge operation.An expert is a man who has made all the mistakes which can be made.
-
Futura Member Posts: 191If you mess up your router and you change the config register to not load the config when it boots then you can copy the start to run and reset the passwords etc.
-
iamme4eva Member Posts: 272My advice would be...don't.
As networker said, it's a merge operation, so you won't necessarily get what you expected. If you TFTP a startup config into your router, you might be surprised when you copy start run and everything doesn't quite work as expected because you still have residual config from your previous running config left.
Best option after TFTP'ing a startup config in is to do a reload.Current objective: CCNA Security
My blog: mybraindump.co.uk -
bushwack Member Posts: 8 ■□□□□□□□□□I would like to ask,
The result of the command 'copy start run' and reloading/rebooting the router/switch would be the same? regardless of whatever commands the running config had?Make your Passion your Profession -
iamme4eva Member Posts: 272bushwack, not quite.
As network said earlier, it's a merge.
copy start run would be like adding your startup config to your running config, without overwriting things that aren't mentioned in the start config. example:
(simplified for ease) current running config:interface fastethernet0/0[INDENT]duplex half ip address 10.0.0.1 255.255.255.0 no shutdown[/INDENT]
startup config:
interface fastethernet 0/0[INDENT]shutdown[/INDENT]
if you did a copy start run here, the running config would look like this:interface fastethernet0/0 [INDENT]duplex half ip address 10.0.0.1 255.255.255.0 shutdown[/INDENT]
It doesn't erase the running config first, it simply merges.Current objective: CCNA Security
My blog: mybraindump.co.uk -
bushwack Member Posts: 8 ■□□□□□□□□□I didn't get the merge thing 'till I saw your sample. That cleared me, thanks a lot!Make your Passion your Profession
-
networker050184 Mod Posts: 11,962 ModIf you want to completely replace the config using the config replace command is a much better option.An expert is a man who has made all the mistakes which can be made.