You are on page 1of 7

Analytics for Cisco ASA

Fluency provides big data analytics and


clarity for Cisco ASA logs

You are here: Home // Cisco // CCNA Study Guide 640 - 802 // Cisco devices administration and configuration // Cisco IOS backup and restore process Step
By Step Guide

Cisco IOS backup and restore process Step By Step Guide


Cisco IOS is stored in flash memory of device. Flash is a nonvolatile memory. Data stored in Flash memory remains safe even in powered off stage. IOS is the most
critical part of any cisco device. You should always take backup of IOS to deal with any unwanted situations. In this article we will explain the backup and restore
process of IOS in detail.

How to take backup of Cisco IOS


You can use any supporting file transfer protocol for backup such as FTP, TFTP or RCP. In this article we will use TFTP for this process.

TFTP Protocol
TFTP is the most lightweight authentication less protocol.
It does not implement any security measurements such as login or access control mechanism.
TFTP can only read and write files from TFTP server. It cannot list, delete or rename files or directories.
TFTP is originally designed for LAN ( Local Area Network). It is virtually unused on Internet.
It is used for initial stages of any network booting approach such as PXE, BSDP, BOOTP.
It is also used for firmware images and configuration file transfer to network appliances like router, switch, IP phone, firewall etc.
TFTP use UDP as transport protocol.
Transfer request is always initiated on port 69.
For demonstration purpose we will use Packet Tracer network simulator software.

Cisco IOS
IOS Download
Router Configuration

Cisco Commands
Cisco Router IP Address
Backup and Restore

Cisco Networking
Cisco Config Backup
Upgrade

Packet Tracer is a powerful network simulator software from Cisco system. You can download Packet Tracer free of cost for our site.
Open Packet Tracer and click End devices. From End devices drag and drop Server and PC-PT in workspace.

Click Router. From available Routers drag and drop a 1841 series router in workspace.

converted by Web2PDFConvert.com

Click Connections. Connect Server's FastEthernet 0 with Router's FastEthernet0/0 via cross cable and Router's console with PC-PT's RS232 via console cable.

Configure Router's interface FastEthernet0/0 with IP address 10.0.0.1. (In real life we never use /8 subnet for end to end connection, but in lab environment we can go
with it to keep it simple.)

Configure IP address on Server

Packet Tracer is developed for Cisco Exam Practice. It has all that we need to do the practice for any cisco associate level exam. Sever has multiple IOS images for
practice. By default TFTP service is running on Server. To verify it click on Config menu tab and expend the Services left menu item.

converted by Web2PDFConvert.com

That all we need to do the practice of back and restore process. Before we move forward, make sure you have this topology. Alternatively you can download this pre
configured topology.
Cisco IOS Backup and Restore
By now I assume that you have this topology in packet tracer.
Click PC-PT and click Desktop menu and click Terminal and accept default Settings. Now we are connected with Router.

We need to supply the name of IOS that you can find with show flash command. Note down the name of IOS.

copy flash tftp command is used to copy IOS from Flash to TFTP server. It takes three parameters.
Source filename :- Name of IOS file that need to be copied.
Address or name of remote host :- IP address of TFTP Server. ( To use name we need to configure DNS service on router. )
Destination filename :- Name of file used at destination to store the source file.

We have successfully taken the backup of IOS on TFTP Server. In next step we would delete the current IOS.
Next command will delete IOS from flash. If you are following this practice on real device skip this stage, unless you are doing it under the supervision of an expert. If
you are following this practice on packet tracer, go ahead.
From privileged mode use delete command to delete IOS file from flash.

Router#delete:[IOS File Name]

converted by Web2PDFConvert.com

Press Enter when asked to confirm the delete operation.

During the boot process router copy and decompress the IOS file in RAM. Router will work as it is until we reload it. Enter reload command in privileged mode to
reload the router.

As expected Router entered in ROMMON mode. ROMMON mode is used for disaster recovery. See our previous article to learn more about Router booting process.

How to restore IOS from ROMMON mode


ROMMON Mode allows us to restore IOS from TFTP Server in Flash. We can use this feature to install new IOS or upload another copy of IOS in Flash.
ROMMON mode has only couple of commands to work with. You can list all available commands by entering ? [Question mark key] .

tftpdnld command is used to download the IOS from TFTP Server.

tftpdnld command needs following variable to be set, before it can download the file.
IP_ADDRESS :- Temporary IP address assigned to the router.
IP_SUBNET_MASK :- Must match with the subnet of TFTP Server.
DEFAULT_GATEWAY :- For this process it would be IP Address of TFTP Server.
TFTP_SERVER :- IP address of TFTP Server.
TFTP_FILE :- Exact name of IOS file. Name is case sensitive.
TFTP_CHECKSUM :- This prevents checksum errors with earlier version of boot ROMs.
Set above variables and enter tftpdnld command. Command will list all variables for your confirmation. If any variable need to be correct type N and reset that variable
before executing this command again. If all variables are correct, type Y to confirm the download operation.

converted by Web2PDFConvert.com

Before you confirm the downloading process make sure:TFTP Server is running.
IOS file is located in the root directory of TFTP Server.
IOS file being downloaded is compatible with hardware.
Use first built in interface of router to connect with TFTP Server. Command will not work with modular card interface.
Server and device are connected with supporting cable. If directly connected use cross cable. If connected via switch use straight through cable.
All variable commands are case sensitive and must be entered in upper case.
Entered IOS file name must match exactly with the file name stored in TFTP Server.
IP_ADDRESS is a temporary address of router. It must be different from DEFAULT_GATEWAY. You can pick any unused IP address for router, from the
subnet of DEFAULT_GATEWAY.
For this process DEFAULT_GATEWAY and TFTP_SERVER are the same. Use TFTP Server's IP address for both.
In few minutes IOS would be download in flash. Once this process is completed use reset command to reload the system.

We have successfully restored the IOS. Router does not store any running configuration automatically. Running configuration is remain in RAM. When we reload the
system any running configuration stored in RAM get erased Unless we saved it manually. In above example we did not store running configuration so we need to
configure it again. Assign IP address to router's FastEthernet 0/0 . If you have downloaded pre configured topology from our site reopen it for next practice.

How to upgrade Cisco IOS


Cisco continuously updates IOS to meet new requirements. With updating existing one, Cisco also release features specific IOS. Whether you are upgrading existing
one or installing new Cisco IOS, method is same.
Connect device with TFTP Server. I already explained this process earlier in this article. By now I assume that your device has proper connectivity with TFTP Server
and TFTP Server contains the IOS, that you are looking for.
Following command is used to download new IOS from TFTP Server in Flash memory.

Router#copy tftp flash


This command requires three parameters.
Address or name of remote host :- IP Address of TFTP Server.
Source filename :- Exact file name of IOS stored in TFTP Server.
Destination filename :- Name of IOS file that you want use in flash.
In following example we would download another IOS.

converted by Web2PDFConvert.com

Use show flash command to list all files stored in flash.

We have successfully downloaded another IOS. Now you can delete previous article and reload the system to implement new IOS. You can keep both IOS, for that
you need to change config register value. Check our previous article to learn more about router booting process.
Couple of old series routers do not have sufficient memory for another IOS. In such a case you could delete current IOS from flash before downloading another IOS.
As I have already mentioned earlier in this article, during the boot process router copy and decompressed ( if file is compressed) the IOS in RAM. So you are safe
until router is running.

< Prev

Next >

Comments
# umesh 2015-08-18 04:12
very useful article thanks...
Reply | Reply with quote | Quote
# Nicketa 2015-06-25 09:47
I'm trying to copy my saved workspace to pendrive. How can I do that?
Reply | Reply with quote | Quote
Refresh comments list
Add comment

FOLLOW US
converted by Web2PDFConvert.com

FOLLOW US
On Twitter

On Google plus
Follow

646

Like us on Facebook

ComputerNetworkingNo
11,560 likes

Like Page

Share

Be the first of your friends to like this

CONTACT US
Write for us
We are always on the lookout for new talent and ideas. We provide you a platform to share your ideas and knowledge with the world while developing a name for
yourself as an expert in your field. We encourage you to learn more and submit a article!
Advertise With us
Reach millions of global audience including network administrator and system admin. Advertising on ComputerNetworkingNotes.com will allow your company to
tap into one of the largest online communities of computer networking.
Report an issue
We greatly appreciate our visitors helping us to find issues with the site. we will investigate your report and use the information you provide to improve our site.
Other reason
We love to hear from you! Regardless of the type of feedback, we are always ready to assist you.

Copyright 2010 - 2015. ComputerNetworkingNotes.com

Advertise with us Write for us Contact Us Privacy Policy Terms and conditions

converted by Web2PDFConvert.com

You might also like