background image
368
Chapter 7
Managing a Cisco Internetwork
If you copied the router's configuration to a TFTP host as a second backup,
you can restore the configuration using the copy tftp running-config
command (copy tftp run for short) or the copy tftp startup-config com-
mand (copy tftp start for short), as shown below. Remember that the
old command that provides this function is config net.
Router#copy tftp run
Address or name of remote host []?192.168.0.120
Source filename []?todd1-confg
Destination filename [running-config]?[Enter]
Accessing tftp://192.168.0.120/todd1-confg...
Loading todd1-confg from 192.168.0.120 (via Ethernet0):
!!
[OK - 487/4096 bytes]
487 bytes copied in 5.400 secs (97 bytes/sec)
Router#
00:38:31: %SYS-5-CONFIG: Configured from
tftp://192.168.0.120/todd1-confg
Router#
The configuration file is an ASCII text file. This means that before you
copy the configuration stored on a TFTP host back to a router, you can make
changes to the file with any text editor.
Erasing the Configuration
To delete the startup-config file on a Cisco router, use the command erase
startup-config
, as follows:
Router#erase startup-config
Erasing the nvram filesystem will remove all files!
Continue? [confirm][Enter]
[OK]
Erase of nvram: complete
Router#
The preceding command deletes the contents of NVRAM on the router.
The next time the router boots, it will run the setup mode.
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com