Copy Cisco router config into flash to backup or replace hardware

Home -> Networking -> Cisco -> Routers

12888 views

From the computer of: qmchenry (338 recipes)
Created: Jun 12, 2006


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

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, it will be necessary to manually copy the old configuration to the new router. 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.

To copy the startup-config to flash as a file called backupconfig, use the 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 (I try to do it whenever I make a configuration change).

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) and 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, I 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'll 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.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Configuring OSPF on a Cisco router
  Cisco: Configuring a Frame-Relay switch
  Assign or configure IP addresses on Cisco routers
  How to disable Cisco router domain name lookup
  Save Cisco router configuration
  Cisco HSRP (like VRRP) - Redundant gateway router configuration
  Configuring a Cisco router as a terminal server
  Change the enable password on a Cisco router
  Configure Cisco router as a basic DHCP server
  Protocol Discovery

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.