Copy Cisco router config into flash to replace hardware

Send Us a Sign! (Contact Us!)
Word PDF

When replacing a faulty router that is not completely dead, it may be possible to copy the startup configuration to the removable flash memory and swap the flash to get the new router up and configured in as short a time as possible. Without this procedure, manually copying the old configuration to the new router will be necessary. This simple command also provides a local backup copy of the router’s config which can save hours of work when replacing a dead router.

Whenever you make changes to the device configuration, you must save the changes to memory so they will not be lost if the system is rebooted. There are two types of configuration files: the running (current operating) configuration and the startup configuration. The running configuration is stored in RAM, so it will be lost if the device is rebooted; the startup configuration is stored in NVRAM.

To copy the startup-config to flash as a file called backupconfig, use the following command:

copy startup-config flash:backupconfig

It will verify the destination filename. (Just press Enter to continue.) This must be done on the old router.

When moving the configuration to another router, physically move the flash memory, power on the router, and answer “no” to the system configuration prompt. Enter enable mode. (No password should be required if this is an unconfigured router.) Then use the following command to load the configuration from flash:

copy flash:backupconfig running-config

This pulls the configuration out of flash and makes it the current running configuration. While it is possible to copy the config directly into the startup-config and reload the router, we like to place it into running-config directly to make sure that everything comes up as it should.

When you copy into running-config, all of the interfaces will be administratively down. You will need to configure each interface with a “no shut” (short for no shutdown).

conf t int serial0/0
no shut
int fasteth0/0
no shut
...

Doing this manually will give you the warm, fuzzy feeling of watching the interfaces come up. However, if there are more than a handful of interfaces, copying to the startup-config will save time.