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

From NesevoWiki
Jump to navigationJump to search
 
(42 intermediate revisions by 5 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.
  
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/>
+
=== 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/>
  
On the Hyper Terminal Menu bar, click Transfer and choose Send File. <br/><br/>
+
''rommon 1 >'' '''''xmodem -c c2600-is-mz.122-15.ZJ2.bin'''''
 +
<br/>
 +
''Do not start the sending program yet...''<br/>
 +
''File size                      Checksum      File name''<br/>
 +
''18699016 bytes (0x11d5308)      0x7234        c2600-is-mz.122-15.ZJ2.bin (bad checksum: 0x6683)''<br/>
  
Issue the dir flash: command in order to verify the successful copy of the file to the Flash: <br/><br/>
+
''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/>
 +
Ready to receive file c2600-is-mz.122-15.ZJ2.bin ...<br/>
 +
<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/>
 +
once the transfer has finished the flash will be erased and you will get a message like:<br/>
 +
''Erasing flash at 0x61780000''.<br/>
 +
this might take a while before it says something like:<br/>
 +
''program flash location 0x600d0000''<br/>
 +
which might also take a bit.....before it finally says:<br/>
 +
''''Download Complete!'''''<br/>
 +
and the router/switch should boot
 +
<br/><br/>
 +
------------------------------------------------------------
 +
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/>
  
Set the BOOT parameters so that the switch boots with the downloaded image when reloaded:
+
switch: '''''copy xmodem: flash:c3550-ipbasek9-mz.122-40.SE'''''<br/>
e.g. / switch: set BOOT flash:c2900xl-c3h2s-mz.120-5.WC8.bin <br/><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/>
 +
''CCCC............................................................................<br/>
 +
................................................................................<br/>
 +
................................................................................<br/>
 +
................................................................................''<br/>
 +
............................................<br/>
 +
''File "xmodem:" successfully copied to "flash:c3550-ipbasek9-mz.122-40.SE.bin"''<br/><br/>
 +
now you have to boot the image you copied:<br/>
 +
'''''switch: boot flash:c3550-ipbasek9-mz.122-40.SE.bin<br/>'''''
 +
''Loading "flash:c3550-ipbasek9-mz.122-40.SE.bin"...############<br/>''
 +
Press RETURN to get started! <br/>
 +
Switch> <br/>
 +
'''''you're done!!!!'''''
  
Boot the switch:
+
=== On Linux using Minicom ===
switch: boot <br/><br/>
 
  
Reload the switch in order to make sure that the switch boots up properly:
 
switch#reload <br/><br/>
 
  
This might take very very long or even very very very very long depening on the size of the IOS you are loading.
+
 
 +
* Pakete <code>minicom</code> und <code>lrzsz</code> installieren
 +
* minicom starten
 +
* Serielle Schnittstelle konfigurieren
 +
** <code>STRG-a o</code>
 +
** Serielle Schnittstelle angeben (<code>/dev/ttyS0</code> für COM Port 1, <code>/dev/ttyUSB0</code> 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 '''<code>switch:</code>''' prompt.
 +
* Auf dem Cisco Gerät in den Execute Mode wechseln: <code>enable</code> (nur wenn IOS bereits geladen)
 +
* Cisco Gerät für den Empfang über Xmodem vorbereiten: <code>copy xmodem: flash: Dateiname</code>
 +
* Xmodem Transfer starten:
 +
** <code>STRG-a s</code>
 +
** <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.