Cisco Backup and Restore A Configuration
Cisco Backup and Restore A Configuration
Introduction
Prerequisites
Requirements
Components Used
Conventions
Make a Backup of the Configuration
Use a TFTP Server to Backup and Restore a Configuration
Use an FTP Server to Backup and Restore a Configuration
Use a Terminal Emulation Program to Backup and Restore a Configuration
Automatic Backup of Configuration using the Kron Method
Backup Configuration to a TFTP Server
Verify
Related Information
Related Cisco Support Community Discussions
Introduction
Routers often get upgraded or swapped out for a number of reasons. This document provides the
user with some basic steps to migrate the configuration from an existing router to a new router.
Prerequisites
Requirements
Before you use the information in this document, make sure that you meet these requirements:
Access to a Trivial File Transfer Protocol (TFTP) or File Transfer Protocol (FTP) server.
Connectivity - Routers must be able to access the FTP or TFTP server. Use the ping
command to verify connectivity.
Components Used
This document is not restricted to specific software and hardware versions.
The information in this document was created from the devices in a specific lab environment. All of
the devices used in this document started with a cleared (default) configuration. If your network is
live, make sure that you understand the potential impact of any command.
Conventions
Refer to Cisco Technical Tips Conventions for more information on document conventions.
Open the configuration file with a text editor. Search for and remove any line that starts with
"AAA".
Note: This step is to remove any security commands that can lock you out of the router.
Copy the configuration file from the TFTP server to a new router in privileged (enable) mode
which has a basic configuration.
Router#copy tftp: running-config Address or name of remote host []? 64.104.207.171 Source
filename []? backup_cfg_for_my_router Destination filename [running-config]? Accessing
tftp://10.66.64.10/backup_cfg_for_my_router... Loading backup_cfg_for_router from
64.104.207.171 (via FastEthernet0/0): ! [OK - 1030 bytes] 1030 bytes copied in 9.612 secs
(107 bytes/sec) CE_2#
Open the configuration file with a text editor. Search for and remove any line that starts with
"AAA".
Note: This step is to remove any security commands that can lock you out of the router.
Copy the configuration file from the FTP server to a router in privileged (enable) mode which
has a basic configuration.
Router#copy ftp: running-config Address or name of remote host [10.66.64.10]? Source
filename [backup_cfg_for_router]? Destination filename [running-config]? Accessing
ftp://10.66.64.10/backup_cfg_for_router... Loading backup_cfg_for_router ! [OK - 1030/4096
bytes] 1030 bytes copied in 13.213 secs (78 bytes/sec) CE_2#
HyperTerminal menu.
After the configuration has finished pasting and the router brings you back to the
configuration prompt, issue the copy running-config startup-config command in order to
write the configuration into memory.
Issue the exit command in order to return to the Router# prompt.
Verify
Use the show running-config command to confirm that the configuration file has been copied to
the destination router.
Related Information