background image
Backing Up and Restoring the Cisco Configuration
367
Warning: Attempting to overwrite an NVRAM configuration
previously written by a different version of the system
image.
Overwrite the previous NVRAM configuration?
[confirm][Enter]
Building configuration...
[OK]
Now when you run show startup-config, the version shows 12.0:
Router#sh start
Using 487 out of 32762 bytes
!
version 12.0
Copying the Configuration to a TFTP Host
Once the file is copied to NVRAM, you can make a second backup to a
TFTP host by using the copy running-config tftp command (copy run
tftp
for short), as follows:
Router#copy run tftp
Address or name of remote host []?192.168.0.120
Destination filename [router-confg]?todd1-confg
!!
487 bytes copied in 12.236 secs (40 bytes/sec)
Router#
Notice that this took only two exclamation points (!!), which are two UDP
acknowledgments. In this example, I named the file todd1-confg because I
had not set a hostname for the router. If you have a hostname configured, the
command will automatically use the hostname plus the extension -confg as
the name of the file.
Restoring the Cisco Router Configuration
If you have changed your router's running-config and want to restore the
configuration to the version in startup-config, the easiest way to do this is
to use the copy startup-config running-config command (copy start
run
for short). You can also use the older Cisco command, config mem,
to restore a configuration. Of course, this will work only if you first copied
running-config into NVRAM before making any changes.
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com