Recuperando IOS cisco procedimento Via TFTP
Posted 02-12-2008 at 09:47 by ederamboni
Bom galera no Intuito de ajudar nossos amigos com dificuldades na hora de recuperar um IOS para cisco resolvi colaborar com esse artigo simples e facíl de entender.
Claro que nunca esquecendo de dar os creditos a Marcos Pitanga a qual tirei algumas informações no blog Cisco Certified - Blog focado nos exames Cisco
Segue o Procedimento:
Obs: Este procedimento foi realizado em um cisco serie 2600
Quando ligar o equipamento precionar o seu teclado Ctrl + Pause Break: irá aparecer o prompt da seguinte forma:
rommon 1 >
Digite o seguinte comando (todos o comandos estarão em vermelho para maior clareza)
rommon 2 > tftpdnld
Abaixo segue informações do comando
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
Nesse ponto iremos fazer as alterações necessárias para fazer o upgrade da IOS:
rommon 3 > IP_ADDRESS=10.55.0.200 (ip temporario da ether do router)
rommon 4 > IP_SUBNET_MASK=255.255.255.0 (mascara da ether do router)
rommon 5 > DEFAULT_GATEWAY=10.55.0.254 (gateway temporario)
rommon 6 > TFTP_SERVER=10.55.0.221 (ip da placa de rede ond esta instalado o tftp Server e contem o IOS)
rommon 7 > TFTP_FILE=C2600-Advsecurityk9-Mz.123-5a.bin (nome da ios completa Suas informações básicas modelos versão etc...)
Nesse momento você ira digitar o comando novamente para fazer o upgrade da IOS
e espere uns 15 minutos…
rommon 8 > tftpdnld
IP_ADDRESS: 10.55.0.200
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 10.55.0.254
TFTP_SERVER: 10.55.0.221
TFTP_FILE: C2600-Advsecurityk9-Mz.123-5a.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 C2600-Advsecurityk9-Mz.123-5a.bin from 10.55.0.221
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
Copying file C2600-Advsecurityk9-Mz.123-5a.bin to flash.
Erasing flash at 0×60fc0000
program flash location 0×60b00000
Por fim logo após terminar o upgrade digitar o comando abaixo para reiniciar i router com a nova IOS:
rommon 9 > reset
Aguarde o procedimento de inicialização…
router#sh version
Cisco Internetwork Operating System Software
IOS ™ C2600 Software (C2600-ADVSECURITYK9-M), Version 12.3(5a), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Tue 25-Nov-03 06:00 by kellythw
Image text-base: 0×80008098, data-base: 0×812A1560
ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)
Router uptime is 1 minute
System returned to ROM by reload
System image file is “flash:C2600-Advsecurityk9-Mz.123-5a.bin”
Pronto esta concluída o procedimento de upgrade ou recuperação de IOS...
Procedimento foi testado por mim e equipamentos Cisco Series 2600, 1700, 2500.
Claro que nunca esquecendo de dar os creditos a Marcos Pitanga a qual tirei algumas informações no blog Cisco Certified - Blog focado nos exames Cisco
Segue o Procedimento:
Obs: Este procedimento foi realizado em um cisco serie 2600
Quando ligar o equipamento precionar o seu teclado Ctrl + Pause Break: irá aparecer o prompt da seguinte forma:
rommon 1 >
Digite o seguinte comando (todos o comandos estarão em vermelho para maior clareza)
rommon 2 > tftpdnld
Abaixo segue informações do comando
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
Nesse ponto iremos fazer as alterações necessárias para fazer o upgrade da IOS:
rommon 3 > IP_ADDRESS=10.55.0.200 (ip temporario da ether do router)
rommon 4 > IP_SUBNET_MASK=255.255.255.0 (mascara da ether do router)
rommon 5 > DEFAULT_GATEWAY=10.55.0.254 (gateway temporario)
rommon 6 > TFTP_SERVER=10.55.0.221 (ip da placa de rede ond esta instalado o tftp Server e contem o IOS)
rommon 7 > TFTP_FILE=C2600-Advsecurityk9-Mz.123-5a.bin (nome da ios completa Suas informações básicas modelos versão etc...)
Nesse momento você ira digitar o comando novamente para fazer o upgrade da IOS
e espere uns 15 minutos…
rommon 8 > tftpdnld
IP_ADDRESS: 10.55.0.200
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 10.55.0.254
TFTP_SERVER: 10.55.0.221
TFTP_FILE: C2600-Advsecurityk9-Mz.123-5a.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 C2600-Advsecurityk9-Mz.123-5a.bin from 10.55.0.221
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
Copying file C2600-Advsecurityk9-Mz.123-5a.bin to flash.
Erasing flash at 0×60fc0000
program flash location 0×60b00000
Por fim logo após terminar o upgrade digitar o comando abaixo para reiniciar i router com a nova IOS:
rommon 9 > reset
Aguarde o procedimento de inicialização…
router#sh version
Cisco Internetwork Operating System Software
IOS ™ C2600 Software (C2600-ADVSECURITYK9-M), Version 12.3(5a), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Tue 25-Nov-03 06:00 by kellythw
Image text-base: 0×80008098, data-base: 0×812A1560
ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)
Router uptime is 1 minute
System returned to ROM by reload
System image file is “flash:C2600-Advsecurityk9-Mz.123-5a.bin”
Pronto esta concluída o procedimento de upgrade ou recuperação de IOS...
Procedimento foi testado por mim e equipamentos Cisco Series 2600, 1700, 2500.
Total Comments 5
Comentários
-
Posted 02-12-2008 at 09:52 by MarcusMaciel
-
Parabéns cara!
Muito boa a dica e fico feliz quando vejo alguém contribuindo com uma dica em nosso portal.
Coloquei sua dica no Wiki, nosso portal de documentação no Under-linux, devidamente formatada ;-).
Dicas/hardware-firmware/recuperando-ios-tftp - UnderLinux Wiki
Sempre que tiver uma dica ou tutorial pode postar aqui que imediamente será colocada no wiki.
Ab, Duca.Posted 02-12-2008 at 10:40 by Duca
-
Posted 02-12-2008 at 10:46 by Duca
-
Posted 02-12-2008 at 10:49 by ederamboni
-
Posted 02-12-2008 at 11:49 by lucasmellon






