CCIE Rack Rental

Cart empty

Account Menu

Rack Usage Setup Guide

FAQ Menu

When Contacting Support

Please include your rack number in your correspondence to expedite request.

Erasing, Saving and Restoring Config File

The method shown here is for saving and restoring your config to the devices built-in-flash. You may also elect to do a "show running-config" and simply copy and paste your config to a text file on your computer.

Send commands to all or multiple sessions at the same time. After starting SecureCRT on the Windows remote desktop, click on "View > Command Window". Right click on an empty area and select "Send Commands to All Sessions". Type some commands (use "Ctrl+Enter" for start a new line). Then press "Enter" to send the command to the selected sessions. For full details, see this document: Using The Chat Window To Send Commands To Multiple SecureCRT Sessions

Quickly Load Initial, Blank, or Your Own Config without Rebooting the Router or Switch.

You do not need to erase the current running-config if you are loading an initial, blank, or your own config from flash. This procedure replaces the running-config with the contents of the configuration saved on flash. A reload is not necessary as the configuration changes takes effect immediately. This will save you a lot of time and will get you started off quickly. To view a listing of files on flash, use the "dir flash:" command. Tip: If thare are too many files on the flash, use a wild card such as dir *.cfg to list only files matching a certain crateria.

Replacing running config with initial config *

Router#configure replace flash:name_of_initial_config
This will apply all necessary additions and deletions
to replace the current running configuration with the
contents of the specified configuration file, which is
assumed to be a complete configuration, not a partial
configuration. Enter Y if you are sure you want to proceed. ? [no]: yes

Replacing running-config with blank.cfg **

Use this command instead of manually erasing the startup-config and reloading the router or switch.

Router#configure replace flash:blank.cfg

After running this command, verify that the hostname changed to "Router>" or "Switch>". If the previous hostname remains, then the command did not take and a erase startup-config and reload will be necessary then.

Replacing running config with your own previously saved config

Router#configure replace flash:name_of_previously_saved_config

When restoring configuration on the Catalyst 3560 switches, it is important to include the colon (:) after the word flash:.

* To save time configuring the devices from scratch, initial configs have been saved to the system flash of each router and switch. These files are saved there by other customers, not by support staff. The name of the initial config file will be different depending on which lab you want to load but they are labled descriptively so finding them should not be a problem. Use the "dir" command to see the available configuration files on flash.

If the initial config has been deleted from the system, then contact This email address is being protected from spambots. You need JavaScript enabled to view it. so we can send you the initial config files to put back on there. Some R&S initial configs are located at For R&S configs not listed on website, Security or Service Provider initial configs, contact This email address is being protected from spambots. You need JavaScript enabled to view it..">This email address is being protected from spambots. You need JavaScript enabled to view it.. For Security and Service Provider, initial configs are saved there by other customers. With the exception of the blank.cfg file, support staff does not save initial configs to the flash of each device. We let the customers do that.

For IOS XR routers: Use the copy disk0:/usr/<file name> running-config command.

For Service Provider R5 - 16: The flash: is called disk2: so replaced flash:name_of_config_file with disk2:name_of_config_file.

Saving Your Own Configuration File to the Router or Switch

To save your configuration to flash, use the "copy running-config flash:My-Config-File-Lab-1" command. Change the My-Config-File-Lab-1 file name to a file name of your choice that makes it easy for you to identify your file and progress.

Router#copy running-config flash:My-Config-File-Lab-1.cfg
Destination filename [My-Config-File-Lab-1]?

735 bytes copied in 0.544 secs (1351 bytes/sec)

To verify the saved config, use the "show flash:" or "dir flash:" command to display the list of files saved on flash including the config you have saved:

-#- --length-- -----date/time------ path
1     53152380 Jun 26 2012 12:00:00 +00:00 c2800nm-adventerprisek9-mz.124-15.T16.bin
2          367 Jan 1 2013 01:00:00 +00:00 initial.cfg
3          183 Jan 1 2013 02:00:00 +00:00 blank.cfg
4          735 Jan 1 2013 03:00:00 +00:00 My-Config-File-Lab-1.cfg

10829951 bytes available (53153665 bytes used)


Tip: Use the mkdir command to create a sub-directory and save your files under that directory.

For IOS XR routers: Use the copy running-config disk0:/usr/<file name> command.

Related Commands

Here are some other useful related commands that you may what to research and look into using:

  • dir *.cfg (use wild cards to list only files matching a certain criteria. usefull when there are many files)
  • mkdir (create new directory to save your files under)
  • send * (use to broadcast commands to all devices or to send message to other users)
  • logging console (useful when copying and pasting long text files)
  • config terminal lock
  • show run | redirect flash:My-Config-File-Lab-1.txt
  • more flash:config-file (display contents of config file)

This document has been completely revised. We no longer recommend using the copy flash:initial.cfg running-config command as this command does not replace the running-config but merges it with the running-config instead. The correct command to use is the "configure replace" command. This command will apply all the necessary additions and deletions necessary to replace the current running configuration with the contents of the specified configuration file.

If you are working on a dedicated rack, it is recommend to save your configuration once in a while and especially before taking extended breaks. The quickest way to save your config is with the built in "wr" alias.

For 4, 6, 8 or 12 hour time slots, near the end of your session, it is a good idea to save your configuration using your own file name (other than the file name "startup-config") witch will allow you to restore your configuration easily and pick up where you left off for your next session. It also avoids having the need to erase the running-config and reloading the router or switch. Give yourself enough time to save your config at the end of your session. There is no warning before your session is over so you must keep track of time on your own.

Current Rack Time