| Backing Up and Restoring the Cisco IOS | ||
Before you upgrade or restore a Cisco IOS, you really should copy the existing file to a TFTP host as a backup just in case the new image crashes and burns. And you can use any TFTP host to accomplish this. By default, the flash memory in a router is used to store the Cisco IOS. In this page describe how to check the amount of flash memory, how to copy the Cisco IOS from flash memory to a TFTP host, and how to copy the IOS from a TFTP host to flash memory. But before you back up an IOS image to a network server on your intranet, you’ve got to do these three things:
1. Make sure you can access the network server.
|
||
| - TFTP server software must be running on the administrator’s
workstation. - The Ethernet connection between the router and the workstation must be made with a crossover cable. - The workstation must be on the same subnet as the router’s Ethernet interface. - The copy flash tftp command must be supplied the IP address of the workstation if you are copying from the router flash. - And if you’re copying “into” flash, you need to verify that there’s enough room in flash memory to accommodate the file to be copied. |
||
Verifying Flash Memory
Notice that the filename in this example is c2500-js-l.11.2-18.bin. The name of the file is platform-specific and derived as follows:
The last line in the router output shows that the flash is 16,384KB (or
16MB). So if the new file that you want to use is, say, 10MB in size,
you know that there’s plenty of room for it. And once you’ve
verified that flash memory can hold the IOS you want to copy, you’re
free to continue with your backup operation.
|
||
Backing Up the Cisco IOS After you ping the TFTP server to make sure that IP is working, you can use the copy flash tftp command to copy the IOS to the TFTP server as shown next:
|
||
Restoring or Upgrading the Cisco Router IOS But before you begin, make sure that the file you want to place in flash memory is in the default TFTP directory on your host. When you issue the command, TFTP won’t ask you where the file is, so if the file you want to restore isn’t in the default directory of the TFTP server, this just won’t work. After you enter the copy tftp flash command, you’ll see a message informing you that the router must reboot and run a ROM-based IOS image to perform this operation:
After you press Enter to confirm that you truly understand that the router needs to reboot, you’ll be presented with the following router output:
Once the router has used the TFTP server, it will remember the address,
and just prompt you to press Enter:
After you tell the router the filename and where the file is, it will ask you to confirm that you understand that the contents of flash memory will be erased. You are prompted three times just to make sure that you really want to
proceed with erasing flash memory. If you haven’t issued a copy
run start command, you’ll be prompted to do so because the router
needs to reboot: After you say yes three times to erasing flash memory, the router must reboot to load a small IOS from ROM memory. (You can’t delete the flash file if it’s in use.) This done, the contents of flash memory are erased, and the file from the TFTP server is accessed and copied to flash memory:
The row of e characters shows the contents of flash memory being erased.
Each exclamation point (!) means that one UDP segment has been successfully
transferred.
|
||
| ccnaguru.com | ||
| Backing Up and Restoring the Cisco Configuration >>> | ||
|
||