CCNA Topics

06 Backing Up and Restoring Cisco Configuration

BACK UP AND RESTORE CISCO CONFIGURATION:


Backing Up the cisco configuration:

We can use command "copy running-config tftp" to backup the running configuration to a tftp server as tftp file. Below are commands recommended to follow before actually executing the back up command.



Verifying the Current Configuration:
Router#show running-config


Verifying the Stored Configuration:
Router#sh start


Copying the Current Configuration to NVRAM:
Router#copy running-config startup-config
Destination filename [startup-config]?[enter]
Building configuration...
[OK]


Router#copy running-config ?


flash: Copy to flash: file system
ftp: Copy to ftp: file system
http: Copy to http: file system
https: Copy to https: file system
null: Copy to null: file system
nvram: Copy to nvram: file system
rcp: Copy to rcp: file system
running-config Update (merge with) current system configuration
scp: Copy to scp: file system
startup-config Copy to startup configuration
syslog: Copy to syslog: file system
system: Copy to system: file system
tftp: Copy to tftp: file system
tmpsys: Copy to tmpsys: file system


Upon using “?” we will wide range of options like where to copy the file


Copying the Configuration to a TFTP Server:
copy running-config tftp


Restoring the Cisco Configuration:


Router#copy tftp running-config
Address or name of remote host []?10.10.10.254
Source filename []?router-confg
Destination filename[running-config]?[enter]
Accessing tftp://10.10.10.254/router-confg...
Loading router-confg from 10.10.10.254 (via FastEthernet0/0):
!!
[OK - 776 bytes]
776 bytes copied in 9.212 secs (84 bytes/sec)
Todd#
*Mar 7 17:53:34.071: %SYS-5-CONFIG_I: Configured from
tftp://10.10.10.254/todd-confg by console


Erasing the Configuration:


Router#erase startup-config
Erasing the nvram filesystem will remove all configuration files!
Continue? [confirm][enter]
[OK]
Erase of nvram: complete
*Mar 7 17:56:20.407: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
Todd#reload
System configuration has been modified. Save? [yes/no]:n
Proceed with reload? [confirm][enter]
*Mar 7 17:56:31.059: %SYS-5-RELOAD: Reload requested by console.
Reload Reason: Reload Command.