Introducción
Este documento describe cómo actualizar un router desde el indicador del monitor ROM (ROMmon) con la funcionalidad TFTP de la imagen de inicio.
Prerequisites
Requirements
No hay requisitos específicos para este documento.
Componentes Utilizados
Este documento no tiene restricciones específicas en cuanto a versiones de software y de hardware.
La información que contiene este documento se creó a partir de los dispositivos en un ambiente de laboratorio específico. Todos los dispositivos que se utilizan en este documento se pusieron en funcionamiento con una configuración verificada (predeterminada). Si tiene una red en vivo, asegúrese de entender el posible impacto de cualquier comando.
Convenciones
Consulte Convenciones de Consejos TécnicosCisco para obtener más información sobre las convenciones del documento.
¿Qué es la imagen de inicio del sistema? (arranque Rx)
La imagen de inicio es un subconjunto del software Cisco IOS® que se utiliza para descargar las imágenes principales del software Cisco IOS al router con TFTP en situaciones de recuperación. El usuario puede interactuar con esta imagen a través de una interfaz de línea de comandos que se identifica mediante promptRouter(boot)#.
Algunas plataformas (Cisco 1600, 2500) lo tienen en ROM; otras (routers de alto nivel) lo tienen en bootflash. Esta imagen puede denominarse imagen xboot, imagen rxboot, imagen bootstrap o imagen de cargador de arranque o ayudante, que depende de su plataforma.
La imagen de inicio tiene capacidades limitadas. Por ejemplo, no contiene información de enrutamiento.
Advertencia: Nunca guarde su configuración mientras esté en modo de arranque, ya que parte de la configuración (como la parte de ruteo) se pierde si se guarda de esta manera.
Cargar la imagen de arranque
Si el router contiene una imagen de inicio válida, se puede utilizar para descargar una imagen válida del software del IOS de Cisco en la memoria Flash con TFTP. Para ello, siga estos pasos:
-
Cambie el registro de configuración para iniciar la imagen de inicio y establezca el registro de configuración como se muestra a continuación (según el mensaje que tenga):
rommon 1 > confreg 0x2101
or
> o/r 0x2101
You must reset or power cycle for the new configuration to take effect.
!--- This is the router output when a configuration register command is entered.
El registro de configuración se ha cambiado para iniciar la imagen de arranque.
-
Para iniciar la imagen de inicio, reinicie el router:
rommon 2 > reset
or
> i
El mensaje de Inicio del sistema aparece y el router reinicia su imagen de reinicio. En la pantalla, debe ver algo como esto:
System Bootstrap, Version 11.1(10)AA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
Copyright (c) 1997 by cisco Systems, Inc.
C1600 processor with 18432 Kbytes of main memory
program load complete, entry point: 0x4018060, size: 0x1e1568
Restricted Rights Legend
.
.
!--- Output omitted.
.
.
Router(boot)>
Ahora debe tener una indicación similar aRouter(boot)>.
-
Si todavía está en ROMmon, eso significa que su imagen de inicio se ha perdido o está dañada. Si su router no tiene una imagen válida en Flash o Bootflash, y no tiene ningún otro procedimiento de actualización ROMmon, la única manera de recuperarse es tener un router similar con una tarjeta Flash compatible, descargar la imagen en ese router y luego mover la tarjeta Flash a la que está atascada.
-
Verifique la Matriz de Compatibilidad del Sistema de Archivos PCMCIA y la Información del Sistema de Archivos para obtener información de compatibilidad de la tarjeta Flash.
-
Conecte la interfaz Ethernet 0 del router a la red, a través de la cual puede alcanzar el servidor TFTP. Configure la dirección IP en la interfaz Ethernet del router.
Router(boot)>enable
Router(boot)#configure terminal
Router(boot)(config)#interface ethernet 0
Router(boot)(config-if)#ip address 10.77.241.160 255.255.255.0
Router(boot)(config-if)#no shutdown
-
Los routers que ejecutan imágenes de arranque no tienen capacidades de ruteo. Por lo tanto, se debe configurar una gateway predeterminada para este router. Ejecute el comando de configuración global ip default-gateway para establecer la gateway predeterminada apropiada para este router. Esto debe apuntar a la dirección IP del router conectado a la misma subred que su interfaz Ethernet 0.
Router(boot)(config)#ip default-gateway 10.77.241.129
-
Antes de copiar la imagen de Cisco IOS del servidor TFTP, asegúrese de que el router tenga conectividad con el servidor TFTP.
Router(boot)#ping 10.77.233.94
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echoes to 10.77.233.94, timeout is 2 seconds:
.!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
Router(boot)#
-
Copie la imagen del IOS de Cisco del servidor TFTP a la memoria Flash en el router.
Router(boot)#copy tftp flash
PCMCIA flash directory:
No files in PCMCIA flash
[0 bytes used, 16777216 available, 16777216 total]
Address or name of remote host [255.255.255.255]? 10.77.233.94
!--- Enter the IP address of the TFTP Server.
Source file name? c1600-y-l.122-10d.bin
!--- This is the filename of the Cisco IOS image that you want to copy from
!--- the TFTP server.
Destination file name [c1600-y-l.122-10d.bin]?
!--- Press 'Enter'.
Accessing file 'c1600-y-l.122-10d.bin' on 10.77.233.94...
Loading
c1600-y-l.122-10d.bin from 10.77.233.94 (via Ethernet0):
! [OK] Device needs erasure before copying new file Erase flash device before writing? [confirm]y
!--- Press 'y' or 'Enter'.
!--- On Class B Flash file systems, the router gives you the option of erasing
!--- the existing contents of Flash memory before writing to it. If no free Flash
!--- memory is available, or if no files have ever been written to Flash memory,
!--- the erase routine is required before new files can be copied. If there is
!--- enough free Flash memory, the router gives you the option of erasing the
!--- existing Flash memory before writing to it. The system will inform you
!--- of these conditions and prompt you for a response.
!--- If you enter 'n' after the "Erase flash before writing?" prompt, the copy
!--- process continues. If you enter 'y' and confirm the erasure, the erase
!--- routine begins. Make sure to have ample Flash memory space before entering "n"
!--- at the erasure prompt. Copy 'c1600-y-l.122-10d.bin' from server as 'c1600-y-l.122-10d.bin' into Flash WITH erase? [yes/no]yes
!--- Entering 'yes' erases all the files in Flash.
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased Loading
c1600-y-l.122-10d.bin from 10.77.233.94 (via Ethernet0):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!
[OK - 7220632/16777216 bytes]Verifying checksum... OK (0x6526) Flash device copy took 00:05:57 [hh:mm:ss] Router(boot)#
-
Vuelva a cambiar el valor del registro de configuración a 2102 para que el router se inicie con la imagen del IOS de Cisco descargada recientemente mientras realiza la próxima recarga.
Router(boot)#configure terminal
Router(boot)(config)#config-register 0x2102
Router(boot)(config)#exit
Router(boot)#
-
Usando el comando reload, recargue el router.
Router(boot)#reload
System configuration has been modified. Save? [yes/no]: no
Building configuration...
[OK]
Proceed with reload? [confirm]
!--- Press 'Enter'.
%SYS-5-RELOAD: Reload requested
System Bootstrap, Version 11.1(10)AA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
Copyright (c) 1997 by cisco Systems, Inc.
C1600 processor with 18432 Kbytes of main memory
program load complete, entry point: 0x4018060, size: 0x1e1568
.
.
!--- Output omitted.
.
.
Router>
-
Para verificar si se ha cargado la imagen correcta en el router, verifique la versión de la imagen de Cisco IOS en el router con el comando show version.
Router>show version
Cisco Internetwork Operating System Software
Cisco IOS (tm) 1600 Software (C1600-Y-L), Version 12.2(10d), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Wed 14-May-03 01:04 by pwade
Image text-base: 0x0803A510, data-base: 0x02005000
ROM: System Bootstrap, Version 11.1(10)AA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
ROM: 1600 Software (C1600-BOOT-R), Version 11.1(10)AA, EARLY DEPLOYMENT RELEASE
SOFTWARE (fc1)
1603 uptime is 19 hours, 26 minutes
System returned to ROM by reload
System image file is "flash:c1600-y-l.122-10d.bin"
cisco 1603 (68360) processor (revision C) with 13824K/4608K bytes of memory.
Processor board ID 10240382, with hardware revision 00000000
Bridging software.
X.25 software, Version 3.0.0.
Basic Rate ISDN software, Version 1.1.
1 Ethernet/IEEE 802.3 interface(s)
1 ISDN Basic Rate interface(s)
System/IO memory with parity disabled
2048K bytes of DRAM onboard 16384K bytes of DRAM on SIMM
System running from FLASH
7K bytes of non-volatile configuration memory.
16384K bytes of processor board PCMCIA flash (Read ONLY)
Configuration register is 0x2102
Router>
La nueva imagen del IOS de Cisco que se ha cargado desde un servidor TFTP ahora se ejecuta.
Información Relacionada