Difference between revisions of "Loading IOS on a switch or router via the console"

From NesevoWiki
Jump to navigationJump to search
Line 1: Line 1:
'''''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.'''''<br/><br/>
+
'''''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. this article explains the procedure using teraterm'''''<br/><br/>
  
'''Step1:''' enter confreg
+
'''rommon 1 >''' ''''xmodem -c filename.bin''''
 
<br/>
 
<br/>
After this entry you will get following message:
+
WARNING: All existing data in bootflash will be lost!
  Configuration Summary
+
Invoke this application only for disaster recovery.
  enabled are:
+
Do you wish to continue? y/n  [n]: ''''y''''
  break/abort has effect
 
  console baud: 9600
 
 
<br/>
 
<br/>
'''Step2:''' do you wish to change the configuration? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>: y type "y" for yes
+
Ready to receive file filename.bin ...<br/>
<br/><br/>
+
now send file by clicking in file-> transfer-> xmodem<br/>
'''Step3:''' enable "diagnostic mode"? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>: type "n" for no
 
<br/><br/>
 
'''Step4:''' enable "use net in IP bcast address"? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>: type "n" for no
 
<br/><br/>
 
'''Step5:''' enable "load rom after netboot fails"? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>:type "n" for no
 
<br/><br/>
 
'''Step6:''' enable "use all zero broadcast"? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>:type "n" for no
 
<br/><br/>
 
'''step7:''' disable "break/abort has effect"? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>:type "n" for no
 
<br/><br/>
 
'''Step8:''' enable "ignore system config info"? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>:type "n" for no
 
<br/><br/>
 
'''Step9:''' change console baud rate? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>: y type "y" for yes
 
<br/>
 
  enter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400
 
  4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 <nowiki>[</nowiki>0<nowiki>]</nowiki>: 7
 
<br/>
 
'''Step10:''' change the boot characteristics? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>:type "n" for no
 
<br/>
 
After this entry you will get following message:
 
<br/>
 
  Configuration Summary
 
  enabled are:
 
  break/abort has effect
 
  console baud: 115200
 
  boot: the ROM Monitor
 
<br/>
 
'''Step11: '''do you wish to change the configuration? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>: type "n" for no
 
<br/>
 
Now you will get back to the promt rommmon 2>
 
<br/><br/>
 
'''Step 12:''' type reset in
 
<br/>
 
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.
 
<br/><br/>
 
'''Step13: '''Create a new session with following configuration:
 
<br/>
 
[[Image:hyperterminal.png]]
 
<br/><br/>
 
'''Step14:''' Type xmodem -c <destination filename> in
 
<br/>
 
'''! Warning:'''
 
  All existing data in bootflash will be lost!
 
  Invoke this application only for disaster recovery. Do you wish to continue?
 
  y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>: y Ready to receive file xmodem -c c2600-i-mz.122-17d.bin ...
 
<br/>
 
'''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.
 
<br/><br/>
 
'''Step16:''' Choose your "IOS file" and change the protocol to "Xmodem" and hit the "send button".
 
<br/>
 
A new window will open and you can see the advancement.
 
<br/>
 
Is the transfer finish this windows is closing and you will your flash will be erasing.
 
<br/>
 
  Erasing flash at 0x60fc0000
 
  program flash location 0x60540000
 
  Download Complete!
 
<br/>
 
Now your device will starting with the new IOS
 
<br/><br/>
 
'''Step 17:''' Go back to the rommon mode and change the baund rate back to 9600
 
<br/><br/>
 
'''Step 18:''' You can use after a reset of the device with your normal connection
 

Revision as of 14:57, 24 January 2011

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. this article explains the procedure using teraterm

rommon 1 > 'xmodem -c filename.bin'
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 filename.bin ...
now send file by clicking in file-> transfer-> xmodem