Recovering a Dead CISCO Switch/Router

AID: 228
  • Status: Published

5265 points

  • ByDevilWAH
  • TypeGeneral
  • Posted on2008-11-21 at 01:03:31
The following recovery method will work on All Cisco Switchs that run ISO software.

You will need a good copy of the IOS version you want you use saved on your PC and a Com's Cable.

The software for these switches comes as a .tar file. Tar is an old Unix file archive type - it actually stands for tape archive and was used for archiving things to tape. The .tar file contains the .bin image that the switch needs to boot, and some other stuff (for Cisco View Device Manager etc). When the switch is running normally, you'd use the command archive download-sw tftp://<ipaddress>/<filename> - this command copies the .tar file over and extracts it onto the filesystem.
However when you're stuck in bootloader mode, there's no such command. So we need to do something different:

1. Use Winzip (or similar) to extract the .bin file from the .tar file on your computer.

2. Connect to the switch using Hyperterminal at 9600 baud, 8 N 1.

3. You should see a prompt that says switch:. This is the bootloader mode. If you don't see that, either you're booted up, and you don't need these instructions, your switch is properly broken, or you've got your terminal settings wrong. Try power-cycling the Catalyst while holding the Mode button on the front in to get the bootloader.

4. Now downloading the .bin file at 9600 baud is going to take a long time (about 2 hours), so we will change the baud rate of the console port temporarily. Enter the command set BAUD 1152003. After you enter this command, you will start to get funny characters in Hyperterminal because its baud rate and the Catalyst's are now mis-matched.

5. Close Hyperterminal and re-connect using 115200 baud instead. You should get intelligible stuff on the screen once more.

6. Type flash_init to initialize the filesystem. (In our case, this wasn't necessary)

7. Type load_helper to load any helper files (in our case there weren't any since we'd just wiped the flash).

8. Tell the switch to expect a file by Xmodem, and put it on the flash: copy xmodem: flash:<filename.bin> The filename should be the same as what you extracted from the .tar file.

9. In Hyperterminal click Transfer | Send File. In the dialogue box, make sure the protocol is XModem and put in the location of your .bin file. Click Send and you should see the process start.
10. Once that's done, issue the command boot flash:<filename.bin> and the IOS will load up.

11. When the switch has booted, you may want to install the full .tar file in the correct manner using the archive command.

12. Check that you can reboot OK without ending up in the bootloader again.

13. Finally, you'd better set the console baud rate back to 9600, otherwise you or someone else will be really confused when they next try to use it. Go back into the bootloader by power-cycling the switch and holding down the Mode button. Enter the command set BAUD 96003 Then type reset to reboot the switch.
Asked On
2008-11-21 at 01:03:31ID228
Tags

CISCO

,

ISO

,

Software

,

Firmware

,

Recovery

,

Flashing

,

Bricked

Topic

Networking Hardware

Views
4416

Comments

Author Comment

by: DevilWAH on 2009-07-16 at 01:02:41ID: 2103

To tidy that up here is the full list of commands to issue at the ROMMON command line to copy a IOS from a TFTP server

copying the IOS using TFTP (only works on some routers with a more modem Boot Flash)

IP_ADDRESS=IP address of the Ethernet port

IP_SUBNET_MASK=subnet mask of the Ethernet port

DEFAULT_GATEWAY=the default gateway

TFTP_SERVER=the IP of the TFTP server (your local computer)

TFTP_FILE=the file name of the IOS file

tftpdnld

Just make sure you have the TFTP server running on a pc and the required IOS ready to go.

This replaces steps 4 to 9 above.

Add your Comment

Please Sign up or Log in to comment on this article.

Join Experts Exchange Today

Gain Access to all our Tech Resources

Get personalized answers

Ask unlimited questions

Access Proven Solutions

Search 3.2 million solutions

Read In-Depth How-To Guides

1000+ articles, demos, & tips

Watch Step by Step Tutorials

Learn direct from top tech pros

And Much More!

Your complete tech resource

See Plans and Pricing

30-day free trial. Register in 60 seconds.

Loading Advertisement...

Top Networking Hardware Experts

  1. Darr247

    48,114

    1,500 points yesterday

    Profile
    Rank: Genius
  2. craigbeck

    34,951

    0 points yesterday

    Profile
    Rank: Sage
  3. TimotiSt

    33,498

    0 points yesterday

    Profile
    Rank: Master
  4. giltjr

    31,195

    0 points yesterday

    Profile
    Rank: Genius
  5. mat1458

    25,731

    0 points yesterday

    Profile
    Rank: Master
  6. nazsky

    24,298

    0 points yesterday

    Profile
    Rank: Wizard
  7. erniebeek

    23,582

    0 points yesterday

    Profile
    Rank: Genius
  8. Mysidia

    23,136

    0 points yesterday

    Profile
    Rank: Sage
  9. donjohnston

    22,743

    400 points yesterday

    Profile
    Rank: Genius
  10. hanccocka

    18,468

    0 points yesterday

    Profile
    Rank: Genius
  11. ikalmar

    17,948

    0 points yesterday

    Profile
    Rank: Genius
  12. Netty

    17,574

    0 points yesterday

    Profile
    Rank: Guru
  13. rigan123

    15,527

    0 points yesterday

    Profile
    Rank: Guru
  14. eeRoot

    15,448

    0 points yesterday

    Profile
    Rank: Wizard
  15. andyalder

    15,320

    0 points yesterday

    Profile
    Rank: Genius
  16. dpk_wal

    15,100

    0 points yesterday

    Profile
    Rank: Genius
  17. lrmoore

    13,688

    0 points yesterday

    Profile
    Rank: Savant
  18. Soulja

    13,404

    0 points yesterday

    Profile
    Rank: Genius
  19. thinkpads_user

    12,572

    0 points yesterday

    Profile
    Rank: Genius
  20. harbor235

    12,348

    0 points yesterday

    Profile
    Rank: Genius
  21. fmarshall

    11,851

    0 points yesterday

    Profile
    Rank: Wizard
  22. Rick_O_Shay

    11,764

    0 points yesterday

    Profile
    Rank: Sage
  23. kevinhsieh

    11,100

    0 points yesterday

    Profile
    Rank: Genius
  24. digitap

    10,000

    0 points yesterday

    Profile
    Rank: Genius
  25. danieldias

    9,900

    1,500 points yesterday

    Profile
    Rank: Master

Hall Of Fame