AOS-CX 10.07 Fundamentals Guide Help Center
data-mc-breadcrumbs-count=3 data-mc-toc=True>You are here:
Syntax copy startup-config running-config Description Copies the startup configuration to the running configuration. Command context Manager (#) Authority Administrators or local user group members with execution rights for this command. Examples switch# copy startup-config running-config Success
AOS-CX 10.07 Fundamentals Guide Help Center
data-mc-breadcrumbs-count=3 data-mc-toc=True>You are here:
Syntax copy running-config {startup-config | checkpoint <CHECKPOINT-NAME>} Description Copies the running configuration to the startup configuration or to a new checkpoint. If the startup configuration is already present, the command overwrites the existing startup configuration. Command context Manager (#) Parameters startup-config Specifies that the startup configuration receives a copy of the running configuration. checkpoint <CHECKPOINT-NAME> Specifies the name of a new checkpoint to receive a copy of the running configuration. The checkpoint name can be alphanumeric. It can also contain underscores (_) and dashes (-).
Do not start the checkpoint name with CPC because it is used for system-generated checkpoints. Authority Administrators or local user group members with execution rights for this command. Examples Copying the running configuration to the startup configuration: switch# copy running-config startup-config Success Copying the running configuration to a new checkpoint named ckpt1: switch# copy running-config checkpoint ckpt1 Success
They essentially achieve the same things by saving the running configuration to the memory so that after a reload it retains the same configuration. Write memory is the "ancient" way, and copy running-config startup-config is the "newer way". Some newer platforms do not accept write memory, the Nexus platforms for instance. The workaround is to create an alias using cli alias name wr copy run start in global configuration mode. The "copy run start" command is just a variation of the "copy" command. The copy command can be used to copy any files in or out of the flash etc. - as opposed to just saving the configuration. Just remember though, if you are in the wrong configuration register "wr" will lose your configuration after a reload/when you change the configuration register whereas "copy run start" will just copy the contents of the running configuration to the start-up configuration. When doing CCNA exams, the command "write" is not allowed. It has to be the official "copy running-config startup-config". The reason why the "wr" or "write" command is very popular are:
Source: https://community.cisco.com/t5/routing/difference-between-quot-copy-run-start-quot-and-wr/m-p/2943355
CIsco devices store commands in two configuration files:
Immediately after you type a command in the global configuration mode, it will be stored in the running configuration. A running configuration resides in a device’s RAM, so if a device loses power, all configured commands will be lost. To avoid this scenario, you need to copy your current configuration into the startup configuration. A startup configuration is stored in the nonvolatile memory of a device, which means that all configuration changes are saved even if the device loses power. To copy your running configuration into the startup configuration you need to type the command copy running-configuration startup-configuration. Router#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] Router#Download our Free CCNA Study Guide PDF for complete notes on all the CCNA 200-301 exam topics in one book. We recommend the Cisco CCNA Gold Bootcamp as your main CCNA training course. It’s the highest rated Cisco course online with an average rating of 4.8 from over 30,000 public reviews and is the gold standard in CCNA training:
|