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.'''''<br/><br/>
  
All you have to do is to type: '''copy xmodem:new_file.bin flash:new_file.bin''' and '''''hit return''''' in the rommon or enable mode.<br/><br/>
+
'''Step1:''' enter confreg
 
+
<br/>
On the Hyper Terminal Menu bar, click Transfer and choose Send File. <br/><br/>
+
After this entry you will get following message:
 
+
  Configuration Summary
Issue the dir flash: command in order to verify the successful copy of the file to the Flash: <br/><br/>
+
  enabled are:
 
+
  break/abort has effect
Set the BOOT parameters so that the switch boots with the downloaded image when reloaded:
+
  console baud: 9600
e.g. / switch: '''set BOOT flash:c2900xl-c3h2s-mz.120-5.WC8.bin''' <br/><br/>
+
<br/>
 
+
'''Step2:''' do you wish to change the configuration? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>: y type "y" for yes
Boot the switch:
+
<br/><br/>
switch: '''boot''' <br/><br/>
+
'''Step3:''' enable "diagnostic mode"? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>: type "n" for no
 
+
<br/><br/>
Reload the switch in order to make sure that the switch boots up properly:
+
'''Step4:''' enable "use net in IP bcast address"? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>: type "n" for no
switch# '''reload''' <br/><br/>
+
<br/><br/>
 
+
'''Step5:''' enable "load rom after netboot fails"? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>:type "n" for no
This might take very very long or even very very very very long depening on the size of the IOS you are loading.
+
<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.bmp]]
 +
<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 10:05, 30 July 2009

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