cisco-Router switch iOS is deleted, recovery method

Source: Internet
Author: User

mode one, tftpdnld way to restore router 2600 IOS
1) connect the computer serial port and router console port to the first Ethernet port of the computer network port and the router F0/0 connected.2) Start the TFTP server and place the version you want to download under the specified directory3) cold start router, in the first 60 seconds, press and hold "CTRL +Break "Key4) The system enters disaster recovery mode with the prompt "rommon1>"5) rommon1>ip_address=192.168.1.2 (set the IP address of the f0/0 port to 192.168.1.2)6) rommon2>ip_subnet_mask=255.255.255.0 (Set subnet mask 255.255.255. 0)7) rommon3>default_gateway=192.168.1.254(default gateway set casually)8) rommon4>tftp_server=192.168.1.1 (set the IP address of the TFTP server 192.168.1.254)9) rommon5>tftp_file=c2600-ik8o3s-mz.122-11. T.bin (that is, the file name of the iOS backup on the TFTP server)) rommon6>TFTPDNLD (Prepare to copy the iOS image, note: The previous commands must be capitalized, and the last tftpdnld be lowercase, and the TFTP is guaranteed to be open) do you wish toContinue? y/N: [n]: yreceiving c2600-ik8o3s-mz.122-11.t.bin from192.168.1.1!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Rommon8>reset

Back to the familiar iOS mode to lose. When the file is transferred, it will automatically return to the command and even the previously configured information will not be lost

View the value of the configuration register below if it is incorrect (for example: Configuration register is 0x3922)

We need to change to 0x2102

Router (config)#config-register 0x2102Router#  Reload

Mode two, Xmodem mode recovery router 2600/3600 IOS

1) connect router with PC terminal, open router without iOS, router will enter monitoring mode (Rommon);

2) in order to improve the speed of data transmission, first change the transmission rate of the router, in Rommon mode, enter:rommon1>confreg (carriage return) According to the prompt, only choose to modify the transfer rate level of 7 (115200), Other parameters are system default

Process:

Rommon 1>Confregdo you wish to change the configuration? y/n [n]: ydisable"Diagnostic Mode"? y/n [n]: nenable"Use net in IP BcasDisable"load rom after netboot fails"? y/n [n]: nenable"Use all Zero broadcast"? y/n [n]: ndisable"Break/abort has effect"? y/n [n]: nenable"Ignore system config Info"? y/n [n]: Nchange console baud rate? y/n [n]: Yenter rate:0= 9600, 1 = 4800, 2 = 1200, 3 = 24004 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 [7]: 7Change the boot characteristics? y/n [n]: Ndo you wish to change the configuration y/n [n]: Nrommon2>reset

3) Modify the transfer rate, disconnect the PC terminal, connect the router at 115200 rate (otherwise garbled)

Continue typing:

The following warning is prompted:

In forcontinue? y/N [n]: Y    (the system prompts whether to confirm the operation, select Y to continue) ready to receive File ... §§   (the § character appears, the router waits to receive data)

4) to transfer iOS files:

In the PC terminal interface, click on "Transfer" menu >" transfer File" : Select iOS file and Transfer Protocol (XMODEM)in the popup dialog box:

Click the Send button to start transferring iOS files;

The entire transmission process is 30 minutes-1 hours 30 minutes or so, depending on the situation

5) when the previous step of the iOS file transfer is complete, the system will automatically load the iOS files to Ram run, prompting the following:

# ################################################ # ############################################################################### ############################ ############################################################################################# ########### [OK]

Carriage return until a familiar prompt statement appears press RETURN to get started

At this point, do not restart, because iOS has not been poured into flash (can be viewed with show flash), only in RAM

We need to use the normal upload iOS method mentioned above, using 100M rate to pass the iOS again

Copy TFTP Flash

6) to view router information:

R2620#  show Flash       There will be an operating system in Flash R2620#  show version     The last line of the register value is not normal 0x2102

7) Restore the router's normal settings

R2620 (config)#Line Console 0R2620 (config-line)#Speed 9600 Modify the console port transfer rateDisconnect the terminal at a normal rate (9600) to connect to the router, view information: R2620 (config-line)#ExitR2620 (config)#Config-register 0x2102 \ \ Modify the value of the configuration register as normalR2620#ReloadSystem configuration has been modified. Save? [Yes/No]: ybuilding configuration ... [OK] Proceed with reload? [Confirm] R2620#The register for show version \ \ Last line is OK, for 0x2102

with Xmodem way to restore switch 2950:

1. Unplug the switch, press and hold the switch "mode" button, plug in the power supply, wait for the switch to enter the console mode. Its prompt is "switch:"

2. Execute commands flash_init and Load_helper

Switch:flash_init        initializing Flash file system switch:load_helper      loading Load_helper command


3. Execute the command dir Flash to view the contents of the Flash Memory:

Switch:dir Flash         flash memory without iOS image unable to stat flash/115200    Set switch console port transfer rate is 115200

At this point, disconnect the HyperTerminal connection, set the transfer rate is also 115200, and then connect, otherwise garbled

4. Execute command: Copy xmodem:flash:filename, where filename is the hard disk in iOS to file name, in the application "HyperTerminal", select the Menu "Transfer"---> "Send File", protocol select Xmode

5. start the switch and modify the console transfer rate

Switch:boot   # reboot into switch> mode

6. then show Version;show Flash #核实操作系统

7. Restore the router's normal settings

Switch (config)#switch (config)# Speed 9600    #设置交换机console传输速率为9600

cisco-Router switch iOS is deleted, recovery method

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.