Home > Articles

Cisco IOS Image Concepts and Configuration

Cisco network engineers should know how to correctly perform a router image update/upgrade. This article covers the different image types that exist on most Cisco equipment, Cisco’s image-naming structure, and how to perform image updates/upgrades.
Like this article? We recommend

Overview

An important skill for Cisco network engineers to have is the ability to correctly perform an image update/upgrade. Although many entry-level engineers might not have the chance to upgrade many production routers, it is a vital skill to have as a network engineer because it will eventually be called on (either when an upgrade is happening or when a router is being placed or replaced). This article covers the different image types that exist on most Cisco equipment, Cisco’s image-naming structure, and how to perform image updates/upgrades.

Cisco Image Types

On most Cisco platforms, two different images are held within a device. A boot image (also referred to as the xboot, rxboot, bootstrap, or bootloader) and the system image (the complete IOS image). The boot image is a subset of the Cisco IOS software that is used when network booting when loading IOS images onto a device or when the system image has been corrupted. Depending on the platform, the boot image can be contained within ROM or flash memory. The system image is used when the device is in a “normal” operating state and is typically contained within flash memory (regardless of flash location [device building flash, slot0, slot 1, and so on).

Cisco Image Naming

The Cisco IOS image-naming structure can be a confusing mess of different letters if the engineer is not familiar with the various feature sets from each platform. The structure of the IOS image is typically platform:featureset:type. The platform is usually a short representation of the model type; for example, the 7206 model is represented with a platform of c7200. The featureset represents what type of features are included in a specific image. (This can be a little confusing because the featuresets available change between platforms. For example, the 7206 Advanced Enterprise Services Image would have the image featureset representation of adventerprisek9, where “adventerprise” = Advanced Enterprise Services and “k9” = strong encryption). The type represents the characteristics of the image itself (for example, whether it is intended to be stored in flash, RAM, or ROM). The following table shows the different possibilities for type (for example, the same 7206 image has a type of mz, which means it is run from RAM and ZIP compressed).

Table 1 - Type Codes

Letter

Description

f

The image runs in flash.

m

The image runs in RAM.

r

The image runs in ROM.

l

The image is relocatable.

z

The image is ZIP compressed.

x

The image is MZIP compressed.

With some of the newer platforms, these different feature sets and different images are being replaced with a common universal image that contains the code for all features. The features that are provided will depend on those authorized by Cisco in the purchased license. Some engineers like this and some don’t, but it does add another thing for engineers to be familiar with.

Cisco Image Updating/Upgrading

Many methods that can be used to update/upgrade a Cisco image. This section reviews the most commonly taught methods; it is by no means a complete list of the possibilities. Generally, most engineers rely on a Trivial File Transfer Protocol (TFTP) server and client (the device) to do image updates/upgrades. However, you can update/upgrade images using the Remote Copy Protocol (RCP) or File Transfer Protocol (FTP). The process that needs to be followed with each is a little different, but the concept is generally the same: Copy an image either from the device to a remote location or from a remote location to a device. TFTP has traditionally been used because a TFTP server is so easy to set up and configure, and it is typically a very small standalone application.

Depending on the platform being used, there may or may not be enough space available to hold more than one IOS image. When there is not enough space, it is vital to ensure that the proper image has been received and that connectivity to the device will not be interrupted. This is vital because on these devices the existing image is erased as part of the copying process. If the wrong image is being used or if the connection is lost, the device will become a large brick without physical access. Although it is theoretically possible to recover these devices (with physical access using a serial connection), it is certainly not an optimal process.

Using TFTP

The most common of the methods used when transferring Cisco IOS images to and from devices is TFTP. The TFTP protocol is a skinny form of the FTP protocol that utilizes UDP (rather than TCP) and thus does not provide any type of retransmission or reordering; it is, however, generally faster.

The process to copy an image from a network TFTP server to a device is very simple, as shown in Table 2.

Table 2 - Copying from TFTP Server to Device

1

Copy a file from a TFTP server to the device.

router#copy tftp device-destination

The typical device-destination of an image on a device is flash. This variable of the command can be altered to reflect the different potential destinations depending on the platform (for example, slot0:, disk0:).

The process to copy an image from a device to a TFTP server is just as simple, as shown in Table 3.

Table 3 - Copying from TFTP Server to Device

1

Copy a file from a device to a TFTP server.

router#copy device-destination tftp

Using RCP

When you are using Remote Copy (RCP), a remote username is required to request a file from the server. Because of this, you have four options to obtain a username: Set the username before using the copy command, specify the RCP username as part of the interaction with the copy command, use the tty username, or use the device’s hostname (in this order). Table 4 shows the process of updating/upgrading using RCP.

Table 4 - Using a RCP Server for Image Management

1

Enter global configuration mode.

router#configure terminal

2

Configure the RCP username (optional).

router(config)#ip rcmd remote-username username

3

Exit global configuration mode.

router(config)#exit

4

Copy a file from a RCP server to a device.

Note: A username prompt will be part of this command.

router#copy rcp device-destination

 

Or

 

4

Copy a file from a device to a RCP server.

Note: A username prompt will be part of this command.

router#copy device-destination rcp

Using FTP

When using FTP, it is usual for both a username and a password to be used. You can, however, allow FTP to use an anonymous FTP user. The username and password combination that is used depends on the device configuration and on how the command is issued. The username/password combination that is going to be used can be specified using the copy command. If specified, they are used over any other option. If the username/password is not set with the copy command, any configured FTP username/password will be used. If these do not exist within the configuration, an anonymous connection is attempted. Table 5 shows the process of updating/upgrading using FTP.

Table 5 - Using a FTP Server for Image Management

1

Enter global configuration mode.

router#configure terminal

2

Configure the FTP username (optional).

router(config)#ip ftp username username

3

Configure the FTP password (optional).

Note: This is not encrypted in the configuration.

router(config)#ip ftp password password

3

Exit global configuration mode.

router(config)#exit

4

Copy a file from a FTP server to a device.

router#copy ftp[://username:password@location] device-destination

 

Or

 

4

Copy a file from a device to a FTP server.

router#copy device-destination ftp[://username:password@location]

Summary

Updating and upgrading IOS devices is not overly complex, but it can become a quick nightmare if part of the process does not work correctly. This is especially true when a device has room for only a single image. Take care to ensure that a stable server platform exists before commencing any update/upgrade.

Pearson IT Certification Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Pearson IT Certification and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Pearson IT Certification products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.pearsonitcertification.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020