IP reference

Referencia Técnica de Redes, Protocolos, Modelo OSI, TCP/IP, y otras tecnologías.

Cómo actualizar el IOS de un router Cisco

Publicado por Luis R. en 2008/06/02

Para este procedimiento vamos a suponer que el router funciona correctamente y tiene conectividad dentro de la LAN, posteriormente describiré como hacer la misma operación cuando el IOS no está presente en el router y debemos cargar una imagen.

Primero instalamos un programa de TFTP server en una computadora, que puede ser la misma que usemos para conectarnos al router por Telnet, por ejemplo, TFTP server de SourceForge.net o el TFTP server de Solarwinds, ambos son gratuitos.

En segundo lugar verificamos los requerimientos mínimos para la imagen que deseamos instalar; ésto es muy importante porque no todas las imágenes requieren la misma memoria o son compatibles con las plataformas de ruteo. Puedes revisar el documento de como escoger una imagen, y adicionalmente debo mencionar que no todas las versiones de IOS están disponibles para descargar.

En tercer lugar nos conectamos por telnet al router y entramos a la línea de comando (CLI), verificamos que exista espacio disponible en la memoria Flash (disk) para copiar el nuevo archivo.

 

Router# show file system File Systems:
      Size(b)     Free(b)      Type  Flags  Prefixes
            -           -    opaque     rw   archive:
            -           -    opaque     rw   system:
       129016      126071     nvram     rw   nvram:
             -           -    opaque     rw   null:
            -           -   network     rw   tftp:
 *   33030140    20511708     flash     rw   flash:
    16777212    16777212     flash     rw   slot0:
     16515068     8038516     flash     rw   slot1:
            -           -    opaque     rw   xmodem:
            -           -    opaque     rw   ymodem:

Posteriormente hacemos un ping desde el router a nuestro servidor de TFTP para asegurar que hay conectividad e iniciamos la copia de nuestro IOS actual hacia el servidor TFTP, por precaución, y antes de instalar el nuevo:

Router# copy flash: tftp: IP address of remote host [255.255.255.255]? 172.16.13.110

filename to write on tftp host? c3640-c2is-mz.Feb24
writing c3640-c2is-mz.Feb24 !!!!…

successful tftp write.

Ahora iniciamos la copia del nuevo IOS:

Router#copy tftp: flash:
Address or name of remote host []? 10.10.10.2

!— 10.10.10.2 is the IP address of the TFTP server

Source filename []? c2600-adventerprisek9-mz.124-12.bin
Destination filename [c2600-adventerprisek9-mz.124-12.bin]?y
Accessing tftp://10.10.10.2/c2600-adventerprisek9-mz.124-12.bin…
Erase flash: before copying? [confirm]y

!— If there is not enough memory available, erase the Flash.


!— If you have sufficient memory you can type n and press enter

Erasing the flash filesystem will remove all files! Continue? [confirm]y
Erasing device… eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeee …erased
Erase of flash: complete

Loading c2600-adventerprisek9-mz.124-12.bin from 10.10.10.2 (via Ethernet0/0): !!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 29654656/49807356 bytes]

Verifying checksum…  OK (0xAC8A)
29654656 bytes copied in 56.88 secs (80383 bytes/sec)

Verificamos el registro de configuración (config-registry value) que debe ser 0×2102

Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#config-register 0×2102 Router(config)#^Z

 Y verificamos la variable de arranque (boot variable) o de booteo, que debe tener el nombre de la imagen recién instalada para arrancar, en este caso, apunta a la imagen anterior y hacemos el cambio para después reiniciar el Router:

Router# show run | include boot
boot system flash:c2600-adventerprisek9-mz.123-21.bin
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no boot system
Router(config)#boot system flash:c2600-adventerprisek9-mz.124-12.bin
Router(config)#^Z
Router(config)#write memory
Router#show run | include boot boot system flash:c2600-adventerprisek9-mz.124-12.bin
Router#reload Proceed with reload? [confirm]
Jan 24 20:17:07.787: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.

 Ya por último, verificamos que la imagen quedó instalada correctamente:

2600#show version
00:22:25: %SYS-5-CONFIG_I: Configured from console by console
Cisco IOS Software, C2600 Software (C2600-ADVENTERPRISEK9-M), Version 12.4(12),
RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 17-Nov-06 11:18 by prod_rel_team

ROM: System Bootstrap, Version 12.2(8r) [cmong 8r], RELEASE SOFTWARE (fc1)

2610 uptime is 22 minutes
System returned to ROM by reload
System image file is "flash:c2600-adventerprisek9-mz.124-12.bin" 
 

 

Fuente: Software Upgrade Procedure de Cisco*
*listado en el Glosario

2 comentarios para “Cómo actualizar el IOS de un router Cisco”

  1. Roberto Arias escribió

    Hola que tal, tengo un ruteador CISCO ASA 5510 Series, el cual no tiene la imagen IOS, me podrian orientar como hacer para cargarla? al E-Mail: conio_g4@yahoo.com.mx

    De antemano muchas gracias.

  2. [...] por Luis R. en Febrero 4, 2009 Roberto pregunta en un comentario ¿cómo puede cargar el sistema operativo en un ASA 5510 que no tiene [...]

Escribe un comentario

XHTML: Puedes usar estas etiquetas: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>