Disaster recovery su router (tftpdnld)

Tutto quello che ha a che fare con le infrastrutture (non le configurazioni)

Moderatore: Federico.Lagni

Rispondi
Avatar utente
Wizard
Intergalactic subspace network admin
Messaggi: 3441
Iscritto il: ven 03 feb , 2006 10:04 am
Località: Emilia Romagna
Contatta:

Procedura per il disaster recovery sui router da rom mon

Codice: Seleziona tutto

rommon 1 > tftpdnld

Missing or illegal ip address for variable IP_ADDRESS
Illegal IP address.

usage: tftpdnld [-r]
  Use this command for disaster recovery only to recover an image via TFTP.
  Monitor variables are used to set up parameters for the transfer.
  (Syntax: "VARIABLE_NAME=value" and use "set" to show current variables.)
  "ctrl-c" or "break" stops the transfer before flash erase begins.

  The following variables are REQUIRED to be set for tftpdnld:
            IP_ADDRESS: The IP address for this unit
        IP_SUBNET_MASK: The subnet mask for this unit
       DEFAULT_GATEWAY: The default gateway for this unit
           TFTP_SERVER: The IP address of the server to fetch from
             TFTP_FILE: The filename to fetch

  The following variables are OPTIONAL:
          TFTP_VERBOSE: Print setting. 0=quiet, 1=progress(default), 2=verbose
      TFTP_RETRY_COUNT: Retry count for ARP and TFTP (default=7)
          TFTP_TIMEOUT: Overall timeout of operation in seconds (default=7200)
         TFTP_CHECKSUM: Perform checksum test on image, 0=no, 1=yes (default=1)

  Command line options:
   -r: do not write flash, load to DRAM only and launch image

rommon 2 > IP_ADDRESS=10.9.8.48
rommon 3 > IP_SUBNET_MASK=255.255.255.0
rommon 4 > DEFAULT_GATEWAY=10.9.8.1
rommon 5 > TFTP_SERVER=10.9.8.167
rommon 8 > TFTP_FILE=c1721-y-mz.123-6b.bin
rommon 10 > tftpdnld

          IP_ADDRESS: 10.9.8.48
      IP_SUBNET_MASK: 255.255.255.0
     DEFAULT_GATEWAY: 10.9.8.1
         TFTP_SERVER: 10.9.8.167
           TFTP_FILE: c1721-y-mz.123-6b.bin

Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash will be lost!
Do you wish to continue? y/n:  [n]:  y

Receiving c1721-y-mz.123-6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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
Copying file c1721-y-mz.123-6b.bin to flash.
Il futuro è fatto di persone che hanno delle intuizioni e visioni .....sono quelle persone che fanno la differenza...... quelle dotate di un TERZO OCCHIO....
anubis
n00b
Messaggi: 12
Iscritto il: lun 14 feb , 2011 6:11 pm

...ottimo riferimento ...avrei due domande...ed una richiesta!!
prima
l'IP del router viene sattato a quello che aveva nel suo normale funzionamento??...e di conseguenza
io setto lIP della nic della macchina che contiene il server tftp in modo che sia nella stessa sottorete
...questo nel caso il router sia connesso solamente alla macchina in questione (ad es un notebook)
seconda
...nel caso di una macchina che appartiene ad un' altra sottorete ...come devo agire??

...la richiesta...

...dovrei ricaricare l'IOS di un soho97 tramite console perchè non è connesso a nessuna macchina tramite
rete...(è solo una mia curiosità)...ho sentito parlare di xmodem...
infatti in rom mon è presente un comando xmodem che potrebbe fare a caso mio...
...stò farneticando oppure qualcosa di vero lo stò dicendo!!

...grazie di un possibile aiuto o suggerimento...
paolomat75
Messianic Network master
Messaggi: 2965
Iscritto il: ven 29 gen , 2010 10:25 am
Località: Prov di GE

Ciao,
per l'IP basta che sia una configurazione corretta per accedere al server tftp, nel caso di rete diversa il gateway deve puntare su un dispositivo in grado di farti accedere a quella rete.

Per la seconda domanda si può usare xmodem sulla porta aux per caricare l'IOS. Vedi il link
http://www.cisco.com/en/US/docs/ios/12_ ... cf008.html

Buona domenica
Non cade foglia che l'inconscio non voglia (S.B.)
Rispondi