cc/td/doc/product/cable/cab_rout
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Installing or Upgrading Cisco IOS Software

Installing or Upgrading Cisco IOS Software

Introduction

This appendix explains how to install Cisco IOS software onto "run-from-RAM" Cisco routers using a TFTP server or remote copy protocol (rcp) server application.

The information in this document describes Cisco IOS Release 11.2 or later.

Before You Begin

Perform these steps prior to installing or upgrading Cisco IOS software:


Step 1   Install a TFTP server.

A TFTP server or a RCP server application must be installed on a TCP/IP-ready workstation or PC. After the application is installed, a minimal level of configuration must be performed.

Note   The TFTP server included on the software feature pack CD-ROM can be used on a PC running Windows 95. For other operating system s, a number of TFTP or rcp applications are available from independent software vendors or as shareware from public sources on the World Wide Web. The TFTP Server application included on the software feature pack CDs is also available on Cisco.com.

Step 2   Download the Cisco IOS software image onto your workstation or PC.

You should now have a TFTP server installed, with a valid Cisco IOS software image.


Installing or Upgrading Cisco IOS Software


Note   For remote copy program (rcp) applications, substitute rcp for every occurrence of TFTP. For example, use the copy rcp flash command instead of the copy tftp flash command.


Step 1   Establish a console session to the router. Do this with either a direct console connection or a virtual Telnet connection. A direct console connection is preferred over a Telnet connection, because a Telnet connection gets lost during the reboot phase of the software installation. The console connection is made with a rolled cable (usually a flat black cable), and connects the console port of the router to the COM port of the PC. Open Hyperterminal on the PC, and use the following settings:

    Speed 9600 bits per second
    8 databits
    0 parity bits
    1 stop bit
    No Flow Control
     
    

Step 2   Verify that the TFTP server has IP connectivity to the router.

Check the IP addresses of the TFTP server and the router (access server) targeted for the TFTP software upgrade to be sure that the addresses are within the same range. Ping the router (access server) to verify that a network connection exists between them. More information on IP addresses is available in "Resolving Common Image Installation Problems."

Step 3   Copy the new software image from the TFTP server to the router (access server) using the following commands:

    Router> enable
    
    Password: password
    
    Router#
    Router# copy tftp flash
    
    

Note   When you are connected to the router through the console port, if you get a > or rommon > prompt, your router is in ROM monitor (ROMMON) mode. If necessary, consult the Boot Failure Recovery Procedures on Cisco.com.

If necessary, you can copy an image from one device to another.


Note   Cisco recommends that you keep a copy of the router or access server configuration before upgrading the router or access server software. The upgrade itself does not affect the configuration, which is stored in nonvolatile RAM (NVRAM).

Step 4   When prompted, enter the IP address of the TFTP server as in the following example:

    Address or name of remote host [255.255.255.255]? 172.17.247.195
    
     
    

Step 5   When prompted, enter the filename of the Cisco IOS software image to be installed, as in the following example:

    Source file name? ubr7200-k8p-mz 
    
     
    

Step 6   Specify the destination filename:

Destination file name? ubr7200-k8p-mz

 

This is the name the new software image will have when it is loaded onto the router. The image can be named anything, but common practice is to enter the UNIX image filename.

Step 7   Erase the Flash device before confirming:

    Erase flash device before writing? [confirm] yes/no 
     
    
The copying process requires several minutes; the time differs from network to network. During the copying process, messages are displayed to indicate which files have been accessed.

The exclamation point "!" indicates that the copying process is taking place. Each exclamation point indicates that ten packets have been transferred successfully. A checksum verification of the image occurs after the image is written to Flash memory.

Step 8   Before reloading, verify the correct installation and commands.

    Router# reload
    
    *Mar 1 00:30:49.972: %SYS-5-CONFIG_I: Configured from console by console
    System configuration has been modified. Save? [yes/no]: no !-- lower case
    Proceed with reload? [confirm] yes !-- lower case
     
    

Step 9   Use the show version command to verify that the router is running with the proper image.


Sample Output—Cisco uBR7200 Series Router

Router# show flash

 
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
1   .. unknown  317FBA1B  4A0694   24  4720148 Aug 29 1997 17:49:36 
hampton/nitro/c7200-j-mz
2   .. unknown  9237F3FF  92C574   11  4767328 Oct 01 1997 18:42:53 c7200-js-mz
3   .D unknown  71AB01F1 10C94E0   10  7982828 Oct 01 1997 18:48:14 rsp-jsv-mz
4   .D unknown  96DACD45 10C97E0    8      639 Oct 02 1997 12:09:17 the_time
5   .. unknown  96DACD45 10C9AE0    3      639 Oct 02 1997 12:09:32 the_time
6   .D unknown  96DACD45 10C9DE0    8      639 Oct 02 1997 12:37:01 the_time
7   .. unknown  96DACD45 10CA0E0    8      639 Oct 02 1997 12:37:13 the_time
 
3104544 bytes available (17473760 bytes used)
 

Related Information

The following documents on Cisco.com contain additional information related to software installation and upgrade:

Copying a System Image from One Device to Another

Copying from Device to Device Inside the Same Router

The table below provides command options for copying a system image from one device to another. Methods vary according to different platforms.

The three most common commands used for image copying are:

copy tftp flash

copy rcp flash

copy slot0: slot1:

Refer to the Cisco IOS Configuration Fundamentals Command Reference , Release 12.1 on Cisco.com.

Detailed Example

Router# show slot0 

     -#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------  name
     1 .D unknown 5E8B84E6 209D8 11 2392 Jan 22 2000 00:22:42 flashconfig 
     2 ..  image 5E7BAE19 B623C4 22 11802988 Jan 22 2000 00:23:18 rsp-jsv-mz.1 20-8.0.2.T  
 
Router# show slot1: 

-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------  name 
1 .. unknown 6A2B4BA7 6FA9E0 20 7186784 Jul 30 1999 15:05:19 rsp-jv-mz.11  1-26.CC1 
2 .. config 631F0D8B 6FB1EC 6 1929 Oct 19 1999 06:15:49 config 
3 .. config  631F0D8B 6FB9F8 7 1929 Oct 19 1999 06:16:03 config1 
 
Router# copy slot0: slot1 

Source  filename []? rsp-jsv-mz.120-8.0.2.T 
Destination filename [slot1]? 
CCCCCCCCCCCCCCCCCCCC  
2392 bytes copied in 0.300 secs 
 

Copying from One Router to Another

Perform these steps in global configuration mode.


Step 1   Display the system Flash directory with the show flash command:

Router# show flash 

 
System flash directory: 
File  Length   Name/status 
1   11173264  c2500-jos56i-l.120-9.bin 
[11173328 bytes used, 5603888 available, 16777216 total] 
16384K bytes of processor board System flash (Read ONLY) 
 

Step 2   Activate the TFTP server on the router that has the Cisco IOS software image that you want to copy. The example below provides the command sequence to use:

Router# configure terminal

Enter configuration commands, one per line.  End with CNTL/Z. 
Router(config)# tf 

Router(config)# tftp-server ? 

flash:   Allow URL file TFTP load requests 
flh:     Allow URL file TFTP load requests 
lex:     Allow URL file TFTP load requests 
null:    Allow URL file TFTP load requests 
nvram:   Allow URL file TFTP load requests 
system:  Allow URL file TFTP load requests 
 
Router(config)# tftp-server 

Router(config)# tftp-server flash:? 

flash:c2500-jos56i-l.120-9.bin 
 
Router(config)# tftp-server flash:c2500-jos56i-l.120-9.bin 

Router(config)# ^Z 

Router#
 

Step 3   After the TFTP server is configured, you can download the specified image from the router using the copy tftp flash command, as if it were a classic TFTP server.


Note   The IP address of your TFTP server is the address of the router on which you configured the tftp-server command.



hometocprevnextglossaryfeedbacksearchhelp
Posted: Thu Jun 27 22:57:10 PDT 2002
All contents are Copyright © 1992--2002 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.