Loading IOS on a switch or router via the console

From NesevoWiki
Revision as of 09:05, 30 July 2009 by Florian (talk | contribs)
Jump to navigationJump to search

If the flash has been deleted / formated and there is no IOS on the switch or router, you have to copy the new IOS via the console port.

Step1: enter confreg
After this entry you will get following message:

 Configuration Summary 
 enabled are: 
 break/abort has effect 
 console baud: 9600 


Step2: do you wish to change the configuration? y/n [n]: y type "y" for yes

Step3: enable "diagnostic mode"? y/n [n]: type "n" for no

Step4: enable "use net in IP bcast address"? y/n [n]: type "n" for no

Step5: enable "load rom after netboot fails"? y/n [n]:type "n" for no

Step6: enable "use all zero broadcast"? y/n [n]:type "n" for no

step7: disable "break/abort has effect"? y/n [n]:type "n" for no

Step8: enable "ignore system config info"? y/n [n]:type "n" for no

Step9: change console baud rate? y/n [n]: y type "y" for yes

 enter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400
 4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 [0]: 7


Step10: change the boot characteristics? y/n [n]:type "n" for no
After this entry you will get following message:

 Configuration Summary
 enabled are:
 break/abort has effect
 console baud: 115200
 boot: the ROM Monitor


Step11: do you wish to change the configuration? y/n [n]: type "n" for no
Now you will get back to the promt rommmon 2>

Step 12: type reset in
The HyperTerminal sessions start to display illegible characters. You need to exit the current terminal session and start a new one at a data rate of 115200 bps to match the console rate as in step 2.

Step13: Create a new session with following configuration:
File:Hyperterminal.bmp

Step14: Type xmodem -c <destination filename> in

! Warning:
 All existing data in bootflash will be lost!
 Invoke this application only for disaster recovery. Do you wish to continue?
 y/n [n]: y Ready to receive file xmodem -c c2600-i-mz.122-17d.bin ...


Step 15: From the HyperTerminal menu bar, select Transfer > Send and specify the image name/location and xmodem protocol as in steps 3 and 4 and start the transfer.

Step16: Choose your "IOS file" and change the protocol to "Xmodem" and hit the "send button".
A new window will open and you can see the advancement.
Is the transfer finish this windows is closing and you will your flash will be erasing.

  Erasing flash at 0x60fc0000
  program flash location 0x60540000
  Download Complete!


Now your device will starting with the new IOS

Step 17: Go back to the rommon mode and change the baund rate back to 9600

Step 18: You can use after a reset of the device with your normal connection