How to restore and upgrade a Cisco router IOS image

Source: Internet
Author: User

Due to historical reasons, Cisco's vro products are rich and complex. Cisco vro's dedicated OS IOS image also has multiple versions at the same time, the following sections discuss two types of Cisco routers that load different versions of IOS image files.

1. Cisco, Series

1. methods and steps for restoring IOS images

1) connect the COM1 port of the PC to the Console port of the vro and use the super terminal software of the PC to access the vro;
2) Enable the power switch of the vro and press Ctrl + break on the keyboard within 30 seconds to interrupt the normal startup of the vro to enter the ROM monitoring mode. The prompt on the screen is as follows:
>
3) type the following command:
> O/R 0x2101
Change the default value of the vro virtual register (0x2102 );
4) type the restart command:
> I
The router restarts. The following information is displayed, indicating that the router has restarted:
System Bootstrap, version 5.2 (8A), release software
Copyright (c) 1986-1995 by Cisco Systems
2500 processor with 1024 Kbytes of main memory
...
Press return to get started!
5) the router automatically enters the ROM startup mode when the virtual register value is 0x2101:
Router (BOOT)>
6) at this time, restore the IOS image file on the TFTP server to the flash memory of the router, and then type the following commands in sequence:
Router (BOOT)> en
Router (BOOT) # copy TFTP flash
System flash directory:
No files in system flash
[0 bytes used, 4194304 available, 4194304 total]
Address or name of remote host [255.255.255.255]? 192.168.18.168 (the IP address has been technically processed, the same below)
Source File Name? Igs-i-l.110-22a.bin (IOS image file name)
Destination File name [igs-i-l.110-22a.bin]?
Accessing file 'ig-i-l.110-22a.bin 'on 192.168.18.168...
Loading igs-i-l.110-22a.bin from 192.168.18.168 (via ethernet0 ):! [OK]
Device needs erasure before copying New File
Erase flash device before writing? [Confirm]
Copy 'ig-i-l.110-22a.bin 'from server
As 'ig-i-l.110-22a.bin 'into flash with erase? [Yes/No] y
Erasing device... eeeeeeeeeeeeeeeeee... erased
Loading igs-i-l.110-22a.bin from 192.168.18.168 (via ethernet0 ):!!!!!!!!!!!!!!!!!!!! (! Indicates that the recovery is successful)
7) restore the default value of the vro virtual register (0x2102), and restore the normal startup sequence of the vro. type the following commands in sequence:
Router (BOOT) # conf t
Router (BOOT) (config) # config-register 0x2102
Router (BOOT) (config) # exit
Router (BOOT) # WR
Router (BOOT) # reload

2. IOS image upgrade methods and steps

1) back up the file to the TFTP server before the upgrade. type the following command:
Router # copy bootflash TFTP (the Cisco 2500 series routers do not have bootflash, and the corresponding Rom is used)
Router # copy flash TFTP
Router # copy startup-config TFTP
2) because the Cisco, and series routers do not allow flash memory to be rewritten in normal working conditions, the IOS image can be upgraded only when the ROM (or bootflash) Startup Mode is enabled. Enter the following commands in sequence:
Router # conf t
Machine (config) # config-register 0x2101
Router (config) # exit
Router # WR
Router # reload
3) after the vro is restarted, it enters the ROM (or bootflash) Startup Mode. Copy the new iOS image file from the TFTP server to the flash memory of the vro:
Router (BOOT) # copy TFTP flash
4) restore the default value of the vro virtual register (0x2102), and restore the normal startup sequence of the vro. type the following commands in sequence:
Router (BOOT) # conf t
Router (BOOT) (config) # config-register 0x2102
Router (BOOT) (config) # exit
Router (BOOT) # WR
Router (BOOT) # reload

Iii. Cisco 1700,2600, 3600,7200 Series

1. methods and steps for restoring IOS images
1) connect the COM1 port of the PC to the Console port of the vro and use the super terminal software of the PC to access the vro;
2) Enable the power switch of the vro and press Ctrl + break on the keyboard within 30 seconds to interrupt the normal startup of the vro to enter the ROM monitoring mode. The prompt on the screen is as follows:
Rommon 1>
3) type the XMODEM command:
Rommon 1> XMODEM c3640-i-mz.120-10.bin (IOS image file name)
4) then, the router waits for receiving the IOS image file from the PC. Then, click the Send option in the super terminal software and select the IOS image file stored in the PC's local hard disk, after confirmation, the file will be downloaded to the flash memory of the vro. Since the communication bandwidth is only 9600 Potter, the entire file will be downloaded for about 1.5 hours (depending on the file size ), the displayed information is as follows:
Do not start the sending program yet...
Device does not contain a valid magic number
Dir: cannot open device flash:
Warning: all existing data in flash will be lost!
Invoke this application only for disaster recovery.
Do you wish to continue? Y/n [N]: Y
Ready to receive file c3640-i-mz.120-10.bin...
Erasing flash at 0x307c0000
Program flash location 0x30380000
Download complete!
Program Load complete, entry point: 0x80008000, size: 0x38f410
5) then, the vro restarts automatically. The screen displays the following information:
Self decompressing the image: ################################# [OK]
...
Press return to get started!

2. IOS image upgrade methods and steps
1) Likewise, back up the key files to the TFTP server before the upgrade. type the following command: Router # copy bootflash TFTP (no bootflash exists on the Cisco 3600 series routers)
Router # copy flash TFTP
Router # copy startup-config TFTP
2) Because CISCO 1700,2600, 3600,7200 series routers allow rewriting of flash memory under normal working conditions, you can directly enter the following command to complete online IOS image upgrade:
Router # copy TFTP flash
Router # reload
Or, for the sake of insurance (at the cost of stopping the service on the router), upgrade the IOS image only after the ROM monitoring mode is enabled, perform the following operations in sequence:
2) press Ctrl + break on the keyboard within 30 seconds after the vro is restarted and powered on. If the normal startup of the vro is interrupted, the ROM monitoring mode is directly entered. The prompt on the screen is as follows:
Rommon 1>
Alternatively, you can perform the following operations after the router is restarted to enter the ROM monitoring mode of the router:
Router # conf t
Router (config) # config-register 0x0
Router (config) # exit
Router # WR
Router # reload
Rommon 1>
3) type the following command to copy the IOS image upgrade file from the TFTP server to the flash memory of the vro:
Rommon 1> B c3640-i-mz.121-2.T 192.168.18.168
Program Load complete, entry point: 0x80008000, size: 0x4ed478
Self decompressing the image: ################################## [OK]
Loading c3640-i-mz.121-2.T from 192.168.18.168 (via ethernet0/0 ):!!!!!!!!!!!!!!!
[OK-5166484/10332160 bytes]
4) restore the default value of the vro virtual register (0x2102), and restore the normal startup sequence of the vro. type the following commands in sequence:
Rommon 1> confreg 0x2102
5) type the restart command to make the new configuration take effect and complete the offline upgrade of the IOS image:
Rommon 2> Reset

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.