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

From NesevoWiki
Jump to navigationJump to search
 
(40 intermediate revisions by 4 users not shown)
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 / formatted and there is no IOS on the switch or router, you have to copy the new IOS via the console port.
  
'''Step1:''' enter confreg
+
=== On Windows using Tera Term ===
 +
The following article explains the procedure loading the IOS image c2600-is-mz.122-15.ZJ2.bin on a cisco26xx router '''''using Tera Term'''''<br/><br/>
 +
 
 +
''rommon 1 >'' '''''xmodem -c c2600-is-mz.122-15.ZJ2.bin'''''
 
<br/>
 
<br/>
After this entry you will get following message:
+
''Do not start the sending program yet...''<br/>
  Configuration Summary
+
''File size                      Checksum      File name''<br/>
  enabled are:  
+
''18699016 bytes (0x11d5308)      0x7234        c2600-is-mz.122-15.ZJ2.bin (bad checksum: 0x6683)''<br/>
  break/abort has effect
+
 
  console baud: 9600
+
''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'''''
 
<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 c2600-is-mz.122-15.ZJ2.bin ...<br/>
<br/><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/>
 
<br/>
After this entry you will get following message:
+
now send the file by clicking on the top menu: '''file-> transfer-> send-> xmodem'''  - and chose the file from your local directory<br/>
 +
the transfer should start now.<br/>
 
<br/>
 
<br/>
  Configuration Summary
+
once the transfer has finished the flash will be erased and you will get a message like:<br/>
  enabled are:
+
''Erasing flash at 0x61780000''.<br/>
  break/abort has effect
+
this might take a while before it says something like:<br/>
  console baud: 115200
+
''program flash location 0x600d0000''<br/>
  boot: the ROM Monitor
+
which might also take a bit.....before it finally says:<br/>
<br/>
+
''''Download Complete!'''''<br/>
'''Step11: '''do you wish to change the configuration? y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>: type "n" for no
+
and the router/switch should boot
<br/>
 
Now you will get back to the promt rommmon 2>
 
 
<br/><br/>
 
<br/><br/>
'''Step 12:''' type reset in
+
------------------------------------------------------------
 +
the following article explains the procedure loading the IOS immage c3550-ipbasek9-mz.122-40.SE.bin on a WS-C3550 series switch '''''using Tera Term'''''<br/>
 +
 
 +
switch: '''''copy xmodem: flash:c3550-ipbasek9-mz.122-40.SE'''''<br/>
 +
''Begin the Xmodem or Xmodem-1K transfer now...''<br/>
 +
''CCC''<br/>
 +
now send the file by clicking on the top menu: '''file-> transfer-> send-> xmodem''' - and chose the file from your local directory<br/>
 +
the transfer should start now.<br/>
 
<br/>
 
<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.  
+
''CCCC............................................................................<br/>
<br/><br/>
+
................................................................................<br/>
'''Step13: '''Create a new session with following configuration:
+
................................................................................<br/>
<br/>
+
................................................................................''<br/>
[[Image:hyperterminal.bmp]]
+
............................................<br/>
<br/><br/>
+
''File "xmodem:" successfully copied to "flash:c3550-ipbasek9-mz.122-40.SE.bin"''<br/><br/>
'''Step14:''' Type xmodem -c <destination filename> in
+
now you have to boot the image you copied:<br/>
<br/>
+
'''''switch: boot flash:c3550-ipbasek9-mz.122-40.SE.bin<br/>'''''
'''! Warning:'''
+
''Loading "flash:c3550-ipbasek9-mz.122-40.SE.bin"...############<br/>''
  All existing data in bootflash will be lost!
+
Press RETURN to get started! <br/>
  Invoke this application only for disaster recovery. Do you wish to continue?
+
Switch> <br/>
  y/n <nowiki>[</nowiki>n<nowiki>]</nowiki>: y Ready to receive file xmodem -c c2600-i-mz.122-17d.bin ...
+
'''''you're done!!!!'''''
<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.
+
=== On Linux using Minicom ===
<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.
+
* Pakete <code>minicom</code> und <code>lrzsz</code> installieren
<br/>
+
* minicom starten
Is the transfer finish this windows is closing and you will your flash will be erasing.
+
* Serielle Schnittstelle konfigurieren
<br/>
+
** <code>STRG-a o</code>
  Erasing flash at 0x60fc0000
+
** Serielle Schnittstelle angeben (<code>/dev/ttyS0</code> für COM Port 1, <code>/dev/ttyUSB0</code> für KeySpan)
  program flash location 0x60540000
+
** Baudrate angeben: 9600 (8N1)
  Download Complete!
+
* minicom neu starten
<br/>
+
* Power on the switch while holding down the ''Mode'' button (or use any other method) to get to the '''<code>switch:</code>''' prompt.
Now your device will starting with the new IOS
+
* Auf dem Cisco Gerät in den Execute Mode wechseln: <code>enable</code> (nur wenn IOS bereits geladen)
<br/><br/>
+
* Cisco Gerät für den Empfang über Xmodem vorbereiten: <code>copy xmodem: flash: Dateiname</code>
'''Step 17:''' Go back to the rommon mode and change the baund rate back to 9600
+
* Xmodem Transfer starten:  
<br/><br/>
+
** <code>STRG-a s</code>
'''Step 18:''' You can use after a reset of the device with your normal connection
+
** <code>xmodem</code> auswählen
 +
** Absoluen Pfad zur lokalen Datei angeben
 +
* Type <code>boot</code> to boot the switch.

Latest revision as of 10:19, 6 September 2018

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

On Windows using Tera Term

The following article explains the procedure loading the IOS image c2600-is-mz.122-15.ZJ2.bin on a cisco26xx router using Tera Term

rommon 1 > xmodem -c c2600-is-mz.122-15.ZJ2.bin
Do not start the sending program yet...
File size Checksum File name
18699016 bytes (0x11d5308) 0x7234 c2600-is-mz.122-15.ZJ2.bin (bad checksum: 0x6683)

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 c2600-is-mz.122-15.ZJ2.bin ...

now send the file by clicking on the top menu: file-> transfer-> send-> xmodem - and chose the file from your local directory
the transfer should start now.

once the transfer has finished the flash will be erased and you will get a message like:
Erasing flash at 0x61780000.
this might take a while before it says something like:
program flash location 0x600d0000
which might also take a bit.....before it finally says:
'Download Complete!
and the router/switch should boot


the following article explains the procedure loading the IOS immage c3550-ipbasek9-mz.122-40.SE.bin on a WS-C3550 series switch using Tera Term

switch: copy xmodem: flash:c3550-ipbasek9-mz.122-40.SE
Begin the Xmodem or Xmodem-1K transfer now...
CCC
now send the file by clicking on the top menu: file-> transfer-> send-> xmodem - and chose the file from your local directory
the transfer should start now.

CCCC............................................................................
................................................................................
................................................................................
................................................................................
............................................
File "xmodem:" successfully copied to "flash:c3550-ipbasek9-mz.122-40.SE.bin"

now you have to boot the image you copied:
switch: boot flash:c3550-ipbasek9-mz.122-40.SE.bin
Loading "flash:c3550-ipbasek9-mz.122-40.SE.bin"...############
Press RETURN to get started!
Switch>
you're done!!!!

On Linux using Minicom

  • Pakete minicom und lrzsz installieren
  • minicom starten
  • Serielle Schnittstelle konfigurieren
    • STRG-a o
    • Serielle Schnittstelle angeben (/dev/ttyS0 für COM Port 1, /dev/ttyUSB0 für KeySpan)
    • Baudrate angeben: 9600 (8N1)
  • minicom neu starten
  • Power on the switch while holding down the Mode button (or use any other method) to get to the switch: prompt.
  • Auf dem Cisco Gerät in den Execute Mode wechseln: enable (nur wenn IOS bereits geladen)
  • Cisco Gerät für den Empfang über Xmodem vorbereiten: copy xmodem: flash: Dateiname
  • Xmodem Transfer starten:
    • STRG-a s
    • xmodem auswählen
    • Absoluen Pfad zur lokalen Datei angeben
  • Type boot to boot the switch.