Upgrade and recovery of experimental 5:ios

Source: Internet
Author: User

Upgrade and recovery of experimental 5:ios


Experimental purpose

Through this experiment, we can grasp

1) Master iOS in the normal case of upgrading iOS
2) iOS lost in case of use TFTP recovery iOS
3) iOS lost in case of iOS recovery using Xmodem

Topological structure

Experimental steps

n iOS upgrade iOS (TFTP) in normal condition

router#conf t//Enter configuration mode
Enter configuration commands, one per line. End with cntl/z.
Router (config) #int f0/0//Enter interface
Router (config-if) #ip Add 1.1.1.1 255.255.255.0//Configure IP Address
Router (config-if) #no shut//enable interface
Router (CONFIG-IF) #end//fallback to privileged mode
Router#copy Tftp:flash://Copy flash from TFTP server
Address or name of remote host []? 1.1.1.2//Specify server address
Source filename []? C2600-d-mz.122-1.bin
Destination filename [c2600-d-mz.122-1.bin]?
Loading C2600-d-mz.122-1.bin from 1.1.1.2:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK-50938004 bytes]


n iOS lost in case of iOS recovery using TFTP

1) Upgrade iOS with tftpdnld command
Rommon 3 >ip_address=10.32.10.1 (IP address of Router)
Rommon 4 >ip_subnet_mask=255.255.255.0 (mask for router)
Rommon 5 >default_gateway=10.32.10.32 (default gateway, PC IP)
Rommon 6 >tftp_server=10.32.10.32 (the IP address of the PC)
Rommon 7 >tftp_file=c2600-i-mz.122-11.bin (Name of uploaded iOS file)
Rommon 8 >TFTPDNLD
Execute the TFTPDNLD command for iOS upgrade, sometimes error or command does not execute, then as long as the Sync command to save the configuration, restart the router (it is best to turn off the power and boot), then execute the TFTPDNLD command.
Rommon 9 >tftpdnld (transfer file) appears prompt select Y
ip_address:10.32.10.1
ip_subnet_mask:255.255.255.0
default_gateway:10.32.10.32
tftp_server:10.32.10.32
Tftp_file:c2600-i-mz.122-11.bin
Invoke This command for disaster recovery only.
Warning:all existing data in all partitions on flash'll be lost!
wish to continue? y/n: [n]: Y
Receiving C2600-i-mz.122-11.bin from 10.32.10.3
...
File reception completed. Copying file C2600-i-mz.122-11.bin to Flash.
Erasing Flash at 0x607c0000
Ogram Flash Location 0x605b0000
Rommon >
Type reset at the Rommon > prompt, or restart the router (power-cycle) to enter the normal boot state

2) iOS lost in case of iOS recovery using Xmodem

Through the Xmodem command (note: Xmodem and the actual modem does not have any connection is only a transmission protocol data is through the terminal's serial port and the router's console port is poured in) upgrade iOS, the following steps:

1, with the Cisco original Cable Connection router console port and PC COM1, using the PC's HyperTerminal software to access the router, there is no need to configure the PC and the router any address.
2. In this mode, enter the Xmodem command, i.e.:
Rommon 2 > Xmodem-c c2600-i-mz.122-11.bin
(-C is a checksum, C2600-i-mz.122-11.bin is the iOS image file stored on the PC)
Warning:all existing data in Bootflash'll be lost!
Invoke this application only for disaster recovery.
wish to continue? y/n [n]: Y
Ready to receive file C2600-i-mz.122-11.bin ...
(At this point in the transmission column of HyperTerminal + Select the Send file option = = And then select the Xmodem and indicate the path of the iOS image file, press Send to start uploading iOS, wait for a long time, depending on the size of iOS and transfer speed. ) Erasing flash at 0x607c0000
Program Flash Location 0x605b0000
Download complete!
After the transfer, the initialization of the whole system is shown as follows:
Program load complete, entry point:0x80008000, SIZE:0X5B85E0
Self decompressing the image: [OK]
.....
Note: Router in this way, the speed is 9600bps and takes a long time due to the use of the console port. Therefore, the console port rate can be modified using the Xmodem command to quickly upgrade iOS. The method is as follows:
Rommon 1 > Confreg Enter
Configuration Summary
Enabled is:
Load ROM after netboot fails
Console baud:9600
Boot:image specified by the boot system commands or default to:cisco2-c2600
Do you wish to change the configuration? y/n [n]: Y (select Yes)
Enable "diagnostic Mode"? y/n [n]: N (select No)
Enable "Use NET in IP brocast address"? y/n [n]: N (select No)
Disable "Load ROM after netboot fails"? y/n [n]: N (select No)
Enable "Use all zero broadcast"? y/n [n]: N (select No)
Enable "Break/abort has effect"? y/n [n]: N (select No)
Enable "Ignore system config Info"? y/n [n]: N (select No)
Change console baud rate? y/n [n]: Y (select Yes)
Enter rate:0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400 4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 [0]: 7 (select 7, XM with maximum 11520 rate) Odem transmission)
Change the boot characteristics? y/n [n]: N (select No)
Configuration Summary
Enabled is:
Load ROM after netboot fails
Console baud:115200
Boot:image specified by the boot system commandsor default to:cisco2-c2600
Do you wish to change the configuration? y/n [n]: N (select No)
Must reset or power cycle for new config to take effect
Note: Reset enter attention: Before pressing the Reset key, you need to modify the serial port speed (My Computer-port Properties-serial port speed of 115200), and then modify the super Terminal set rate of 115200, remember, must do so, otherwise it will appear garbled! Then close this HyperTerminal, re-establish a HyperTerminal connection, reboot the system, and then appear
Rommon 1> prompt Then, enter
Rommon 1> Xmodem-r
Don't start the sending program yet ...
Invoke this application only for disaster recovery.
wish to continue? y/n [n]: Y (select Yes)
Ready to receive File ...
Note: At this point, on the HyperTerminal menu "transfer"-"Send Files"-Select the location of the iOS image files and choose to use the "Xmodem" protocol, click "Send". Wait 10-20 minutes or so to upgrade 3-6m iOS files! After the upgrade is complete, please remember to change back to the computer serial port and HyperTerminal, router Confreg Xmodem, such as the transfer rate of 9600bps.

Here's how:
router>en access to new iOS privileged mode
Router#reload Restart System
Proceed with reload? [Confirm] Enter
00:01:04:%sys-5-reload:reload requested System Bootstrap, Version 11.3 (2) XA4, RELEASE Software (FC1) Copyright (c) 1999 b Y Cisco Systems, Inc.TAC:Home:SW:IOS:Specials for info PC = 0xfff0a530, Vector = 0x500, SP = 0x680127b0 C2600 Platform Wit H 24576 Kbytes of main memory PC = 0xfff0a530, Vector = 0x500, SP = 0x8000468 monitor:command "Boot" aborted due to user Interrupt
Press the Ctrl+break key in 30 seconds
Rommon 1 > Confreg (enter "confreg" command)
Configuration Summary
Enabled Are:load ROM after netboot fails
Console baud:115200
Boot:image specified by the boot system commands or default to:cisco2-c2600
Do you wish to change the configuration? y/n [n]: Y (select Yes)
Enable "diagnostic Mode"? y/n [n]: N (select No)
Enable "Use NN IP brocast address"? y/n [n]: N (select No)
Disable "Load ROM after netboot fails"? y/n [n]: N (select No)
Enable "Use all zero broadcast"? y/n [n]: N (select No)
Enable "Break/abort has effect"? y/n [n]: N (select No)
Enable "Ignore system config Info"? y/n [n]: N (select No)
Change console baud rate? y/n [n]: Y (select Yes)
Enter rate:0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400 4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 [7]: 0 (select 0, change back to the standard rate rate of 9600 Xmodem transmission)
Change the boot characteristics? y/n [n]: N (select No)
Configuration Summary
Enabled Are:load ROM after netboot fails
Console baud:9600
Boot:image specified by the boot system commands or default to:cisco2-c2600
Do you wish to change the configuration? y/n [n]: N
Must reset or power cycle for new config to take effect
Rommon 2 >
At this time manually change back to the computer serial port and Super Terminal 2 transfer rate of 9600 and then typed
Rommon 2 >reset It's best to turn the power off and reboot. Using the Xmodem command to achieve router iOS upgrade is slow, often wait a long time, in order to upgrade quickly, you can use the following methods.


Upgrade and recovery of experimental 5:ios

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.