Steps for installing and upgrading Cisco router series software

Source: Internet
Author: User
Tags file transfer protocol

Introduction

This document describes how to upgrade the Cisco IOS software image on the connected router platform. Upgrade instances of vrouters 2600 and 3600 are also applicable to the vro platforms listed below. The name of the Cisco IOS software file may vary depending on the Cisco IOS software version, function settings, and platform. This document describes the following Cisco Series routers:

Cisco 1000 series routers

Cisco 1400 series routers

Cisco 1600-R series routers

Cisco 1700 series routers

Cisco 2600 series routers

Cisco 3600 series routers

Cisco 3700 series routers

Cisco 4000 Series routers

Cisco 4700 series routers

Cisco AS5300 series routers

Cisco MC3810 series routers

The information in this document is based on Cisco IOS software version 12.0 or later.

Before getting started

Step 1: Install the TFTP Server

A small File Transfer Protocol (TFTP) server or remote copy protocol (RCP) server application must be installed on a TCP/IP-ready workstation or PC. Once the application is installed, the minimum configuration is required.

First, you must configure the TFTP application to run as a TFTP server, instead of a TFTP client.

The outbound file directory must be specified. The Cisco IOS software image is saved in this directory (see step 2 below ). Most TFTP applications provide installation routines to assist with these configuration tasks.

Note: The software function package includes a TFTP server, which can be used on PCs running Windows 95, Windows 98, NT4.0, and Windows 2000. For other operating systems, you can obtain many TFTP or RCP applications from independent software vendors, or share software for TFTP or RCP applications from public resources on the World Wide Web. The TFTP server application on the software functional package can also be obtained on CCO.

Download the TFTP server for Windows 95, Windows 98, NT4.0, and Windows 2000.

Step 2: select a Cisco IOS software image

Verify that the Cisco IOS software image you downloaded supports both your hardware and required software features. You can find this information through Cisco Software Advisor. Before downloading the software version you selected, make sure that your router has enough dynamic RAM (DRAM) and flash memory to save the Cisco IOS software image. In the version description of each Cisco IOS Software version and the Cisco Software Center IOS Upgrade Planner, you can find the recommended minimum DRAM and flash memory.

For more information about how to select the correct software version and function settings, see "how to select a Cisco IOS software version ".

Step 3: Download the Cisco IOS software image

Download the Cisco IOS software image from the Cisco IOS Upgrade Planner to your workstation or PC.

Procedure for upgrading a Cisco 2600 series router

Create a console session to the vro

Check whether the TFTP server has an IP connection to the vro.

Copy the new image to the flash memory of the 2600 series router through the TFTP ServerStep-by-step program

Step 1: Create a console session to the vro

Even if you can connect to the vrotelnet through telnet, we strongly recommend that you use the Console port to connect directly to the vro. The reason is: if some faults occur during the upgrade, you may need to physically close the router to restart it. In addition, when the vrotelnet is restarted, the telnet connection is lost.

Use reverse cables (usually flat and black cables) to connect the Console port of the router to a COM port of the PC.

Once the PC is connected to the Console port of the vro, you must enable the Super Terminal on the PC and use the following settings:

Speed9600 bits per second

8 databits

0 parity bits

1 stop bit

No Flow Control

Note: If you obtain invalid characters in a session of a Super Terminal, it means that you have not set the properties of the Super Terminal correctly or the config-register of the router is set to a non-standard value, makes the console connection speed higher than 9600 bps. Run the show version command (displayed in the last line of the output) to check the value of config-register and make sure that the value is set to 0x2102 or 0x102. The vro must be reloaded to make the configuration register take effect. Once you are sure that the console speed is set to 9600 bps for the vro, you should check the properties of the above Super Terminal. For more information about how to set super terminal properties, see "apply correct terminal simulator settings to achieve console connection ".

Startup Problems

Once you connect to the Console port of the router, you may notice that the router is in ROMmon or Boot mode. These two modes are used for recovery and diagnosis steps. If you do not see the usual router prompt, follow the following suggestions to continue with the upgrade steps.

1. the router is started in rommon mode. When you issue the dir flash: Command, the following information appears.

Rommon 1> dir flash:

Device does not contain a valid magic number

Dir: cannot open device "flash :"

Rommon 2>

When you see the preceding error message, it means that the flash memory is empty or the file system is damaged. For more information, see "Procedure for downloading Xmodem console using ROMmon ".

Note: You may also need to check the boot fault recovery steps.

2. The vro starts in boot mode. The following information appears on the console:

Router (boot)>

Device does not contain a valid magic number

Boot: cannot open "flash :"

Boot: cannot determine first file name on device "flash :"

When the above error message is displayed in the output result of the console, it means that the flash memory is empty or the file system is damaged. Follow these steps to copy a valid image to the flash memory.

Note: you may need to refer to "guide fault recovery steps ".Step 2: Check whether the TFTP server is connected to the IP address of the vro.

A network connection must be established between the TFTP server and the vro, And the IP address of the target vro must be pinged. To perform this operation, the router interface and the TFTP server must have:

The IP address in the same range or the default gateway is configured.

To check the IP address of the TFTP server. For more information, see "Confirm IP Address ".

Step 3: copy the new image to the flash memory of the 2600 series router through the TFTP Server

You have an IP connection and can perform ping operation between the computer that serves as the TFTP server and the router. You can copy the Cisco IOS software image to flash memory.

Note: before copying, make sure that you have enabled the TFTP server software on your PC and the file name mentioned in the TFTP server root directory. We recommend that you keep the backup of the router/access server configuration before the upgrade. The upgrade does not affect the configuration (the configuration is saved in non-easy-to-lose RAM (NVRAM ). However, if the operation steps are not correctly performed, the operation may be affected.

For RCP applications, replace each TFTP with RCP. For example, replace the copy tftp flash command with the copy rcp flash command.

2600> enable

Password: xxxxx

2600 #

2600 # copy tftp flash

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

The IP address of the TFTP server.

Enter the IP address of the TFTP server as follows:

Address or name of remote host []? 10.10.10.2

Specifies the file name of the new Cisco IOS software image.

Enter the name of the Cisco IOS software image to be installed as follows:

Source filename []? C2600-i-mz.121-14.bin

Note: The file name is case sensitive. Therefore, make sure that the file name is entered correctly.

Specifies the name of the destination file.

This is the name of the new software image when it is loaded to the vro. You can name the image, but generally enter the same image file name.

Destination filename []? C2600-i-mz.121-14.bin

Note: If you see the following error message:

% Error copying tftp: // 10.10.10.2/c2600-i-mz.121-14.bin

(Not enough space on device)

This indicates that there is not enough space in flash memory to copy the image. Before copying a new image from the TFTP server, you must delete one or more files. Update a new image from the TFTP Server

2610 # copy tftp flash

Address or name of remote host []? 10.10.10.2

Source filename []? C2600-i-mz.121-14.bin

Destination filename [c2600-i-mz.121-14.bin]? Y

Accessing tftp: // 10.10.10.2/c2600-i-mz.121-14.bin...

Erase flash: before copying? [Confirm] y! --- If you do not have enough storage capacity, You can erase the flash memory.

Erasing the flash filesystem will remove all files! Continue? [Confirm] y

Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Eeeeeeeeeeee... erased

Erase of flash: complete

Loading c2600-i-mz.121-14.bin from 10.10.10.2 (via Ethernet0/0 ):!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[1] [2] [3] Next page

Article entry: csh responsible editor: csh

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[OK-4501480/9001984 bytes]

Verifying checksum... OK (0xAC8A)

4501480 bytes copied in 56.88 secs (80383 bytes/sec)

The replication process takes several minutes. The duration varies depending on the network. During the copy process, a message is displayed indicating the file that has been accessed.

Exclamation point "!" Indicates that the replication process is being processed. Each exclamation point indicates that ten packets have been successfully transmitted. Image verification and authentication will be performed after the image is written to flash memory.

For troubleshooting software transmission problems, refer to "FAQs about using the TFTP server or RCP server to install images.

After you upgrade the flash memory, you need to use the reload command to reload the router.

Before you reload the vro, you need to check the following two items:

Config-register value -- you can use the show version command to check. This value is displayed in the last line of the show version output result. The value should be set to 0x2102.

2610 # configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

2610 (config) # config-register 0x2102

2610 (config) # ^ Other files in Z flash memory -- if the first file in flash memory is not a Cisco IOS software image, but a configuration file or another file, you need to configure the boot system notice to start the specified image. Otherwise, the router will try to start with the configuration file in flash memory or the first file, which will be invalid. This step is not required if there is only one file in flash memory, namely the Cisco IOS software image.

2610 # configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

2610 (config) # no boot system

2610 (config) # boot system flash c2600-i-mz.121-14.bin

2610 (config) # ^ Z

Note: When you type the reload command, the router will ask if you want to save the configuration. You should be very cautious at this time. The reason is: if the vro is in boot Mode (for example), it is a subset of the complete Cisco IOS software running and has no routing function. Therefore, in the running configuration, all route configurations disappear. If you save the configuration at this time, you will delete the startup configuration in NVRAM, the configuration is not completely run. This configuration is saved only when you are sure to have the complete configuration in the output result of show run. If the configuration has been changed, save the configuration without considering the new config-register. This operation is automatically completed.

2610 # reload

System configuration has been modified. Save? [Yes/no]: y

Building configuration...

[OK]

Proceed with reload? [Confirm] y

Check whether the router runs in the correct image. After the reload is completed, the router should run with the required Cisco IOS software image. Use the show version command for verification.

2610 # show version

00: 22: 25:% SYS-5-CONFIG_ I: Configured from console by console

Cisco Internetwork Operating System Software

IOS (tm) C2600 Software (C2600-I-M), Version 12.1 (14), release software (fc1)

Copyright (c) 1986-2002 by cisco Systems, Inc.

Compiled Mon 25-Mar-02 20:33 by kellythw

Image text-base: 0x80008088, data-base: 0x80828788

ROM: System Bootstrap, Version 11.3 (2) XA4, release software (fc1)

2610 uptime is 22 minutes

System returned to ROM by reload

System image file is "flash: c2600-i-mz.121-14.bin"

Procedure for upgrading a Cisco 3600 series router with a PCMCIA card

Create a console session to the vro

Check the remaining space of the flash card (PCMCIA slot)

Check whether the TFTP server has an IP connection to the vro.

Copy new image to flash memory via TFTP Server

Set the boot instruction to load the new image when it is enabled.

Restart the router to load the new image.Verify upgrade

Step 1: Create a console session to the vro

For more information, see "create console session to vro ".

Note: after connecting to the vro。 through the Console port, if you see the ">" or "rommon>" prompt, your vro is in ROM monitoring (ROMmon) mode. If the router displays the "router (boot)>" prompt, the router is in boot Mode. For steps to handle these two cases, see "startup problems ".

Step 2: Check the remaining space of the flash card (PCMCIA slot)

In this case, check whether the flash card has enough space to copy the new image. If the storage space is insufficient, You need to delete some files to obtain sufficient space. In some cases, if the image is large, you may need to delete the current image from the flash card.

If you want to determine the Space Value and display the current file in slot0: Or slot1:, issue the dir {device:} command.

3600 # dir slot1:

Directory of slot1 :/

1-rw-2779832 c3640-i-mz.113-11c.bin

2-rw-3748760 c3640-i-mz.120-22.bin

Check whether the name and file size are correct.

If you find that the storage space is insufficient, you can delete some files. Use the delete {device :} [filename] command to delete an object.

3600 # delete slot1:

Delete filename []? C3640-i-mz.113-11c.bin

Delete slot1: c3640-i-mz.113-11c.bin? [Confirm] y

NOTE: If there is no valid image in the flash memory, do not reload the router or shut down and restart it. Otherwise, the router will start in rommon or boot mode.

Step 3: Check whether the TFTP server has an IP connection to the vro

A network connection must be established between the TFTP server and the vro, And the IP address of the target vro must be pinged. To perform this operation, the router interface and the TFTP server must have:

IP addresses in the same range, or

Configured default gateway

If you want to check the IP address of the TFTP server.

For more information, see "Confirm IP Address ".

Step 4: copy the new image to the flash memory through the TFTP Server

Now that you have an IP connection and can ping the computer that serves as the TFTP server and the router, you can copy the Cisco IOS software image to the correct slot.

Note: before copying, make sure that you have enabled the TFTP server software on your PC and the file name mentioned in the TFTP server root directory. We recommend that you keep the backup of the router/access server configuration before the upgrade. The upgrade itself does not affect the configuration (the configuration is saved in a non-easy-to-lose RAM--NVRAM ). However, if the operation steps are not correctly performed, the operation may be affected.

For RCP applications, replace each TFTP with RCP. For example, use the copy rcp {device :} command instead of the copy tftp {device :} command.

If necessary, you can copy an image from one device to another. 3600 # copy tftp: slot1:

Address or name of remote host []? 171.68.173.10

Source filename []? C3640-i-mz.122-7b.bin

Destination filename [c3640-i-mz.122-7b.bin]

Previous Page [1] [2] [3] Next page

Article entry: csh responsible editor: csh

Accessing tftp: // 171.68.173.10/c3640-i-mz.122-7b.bin...

Erase slot1: before copying? [Confirm] n! --- You specify "n" here because there is not enough available memory.

Loading c3640-i-mz.122-7b.bin from 171.68.173.10 (via Ethernet1/0 ):

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!

[OK-5996844/11993088 bytes]

Verifying checksum... OK (0x13F0)

5996844 bytes copied in 67.708 secs (89505 bytes/sec)

3600 #

Run the dir slot1 command to check whether the image has been copied to slot1. Next you can see that the new image c3640-i-mz.122-7b.bin has been copied into PCMCIA slot1:

3600 # dir slot1:

Directory of slot1 :/

2-rw-3748760 c3640-i-mz.120-22.bin

3-rw-5996844 c3640-i-mz.122-7b.bin

Step 5: Set the boot instruction to load the new image when it is enabled.

After the image is copied through TFTP, you may need to notify the router of the image to be loaded when it is started.

Check the current Guide description

The new image is in slot1. You need to set the router to start with a new image. The default setting is that the vro starts with the first available image (the default value is enabled when no boot instructions are provided in the configuration ).

3600 # show running-config

Building configuration...

Current configuration:

!

Version 12.0:

Service timestamps debug uptime

Service timestamps log uptime

No service password-encryption

!

Hostname 3600

!

Boot system flash slot1: c3640-i-mz.120-22.bin

!

Ip subnet-zero

!

The following command appears at the beginning of the configuration. In our instance above, the boot system command on the router is configured as boot system flash slot1: c3640-i-mz.120-22.bin. If your configuration contains boot system command entries, you need to remove them from the configuration. For more information about how to Remove boot entries, see the following section.

Remove previous boot instructions

To remove these commands, enter the terminal configuration mode. In configuration mode, type "no" before each guide instruction to cancel all commands. The following example shows how to remove the current Guide.

3600 # configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

3600 (config) # no boot system flash slot1: c3640-i-mz.120-22.bin

3600 (config) # ^ Z

3600 #

"No boot system flash slot1: c3640-i-mz.120-22.bin" "indicates removing from configuration. Run the show running-config command to check whether the command has been removed.

Set new boot instructions

Now set the vro to start with a new image. Run the following command to set the boot system parameters:

Boot system flash slot #: {imagename} (imagename = name of the new Cisco IOS software image)

3600 # configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

3600 (config) # boot system flash slot1: c3640-i-mz.122-7b.bin

3600 (config) # ^ Z

3600 # write memory

3d01h: % SYS-5-CONFIG_ I: Configured from console by vty0

Building configuration...

3600 #

Run the show version command to check whether config-register 0x2102 is being used. For different settings, you can change the configuration by issuing the following command in configuration mode:

3600 # configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

3600 (config) # config-register 0x2102

3600 (config) # ^ Z

After the config-register is changed, the change will take effect in the next reload.

Step 6: restart the router to load the new image

To make the router run a new Cisco IOS software image, you need to reload the router. Make sure that you have issued the copy running-config starting-config command or the write memory command to save the configuration.

3600 # write memory

3d01h: % SYS-5-CONFIG_ I: Configured from console by vty0 (127.0.0.11)

Building configuration...

3600 # reload
Step 7: Check the upgrade

After the vro is enabled, run the show version command to ensure that the new version is running.

3640 # show version

Cisco Internetwork Operating System Software

IOS (tm) 3600 Software (C3640-I-M), Version 12.2 (7b), release software (fc1)

Copyright (c) 1986-2002 by cisco Systems, Inc.

Compiled Mon 04-Mar-02 20:23 by pwade

Image text-base: 0x600089A8, data-base: 0x60A6A000

ROM: System Bootstrap, Version 11.1 (19) AA, early deployment release software (f)

Router uptime is 2 minutes

System returned to ROM by reload

System image file is "slot1: c3640-i-mz.122-7b.bin"

Cisco 3640 (R4700) processor (revision 0x00) with 59392 K/6144 K bytes of memory.

Processor board ID 10524422

R4700 CPU at 100 Mhz, Implementation 33, Rev 1.0

Bridging software.

X.25 software, Version 3.0.0.

4 Ethernet/IEEE 802.3 interface (s)

DRAM configuration is 64 bits wide with parity disabled.

125 K bytes of non-volatile configuration memory.

4096 K bytes of processor board System flash (Read/Write)

20480 K bytes of processor board PCMCIA Slot0 flash (Read/Write)

20480 K bytes of processor board PCMCIA Slot1 flash (Read/Write)

Configuration register is 0x2102

Verify that version 12.2 (7b) is used correctly and config-register is set to 0x2102.

Previous Page [1] [2] [3]

Article entry: csh responsible editor: csh

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.