You are on page 1of 8

Copias de respaldo de la configuracin del Router 1) Haciendo copias de la configuracin del router ABC al Servidor TFTP Server ABC#copy

startup-config tftp: Address or name of remote host []? 192.168.2.36 Destination filename [abc-confg]? abc-confg !! 1115 bytes copied in 0.064 secs (17422 bytes/sec)

2) Haciendo copia desde el servidor TFTP Server con IP 192.168.2.36 donde el archivo origen es abc-confg, directamente a la NVRAM ABC#copy tftp://192.168.2.36/abc-confg startup-config Destination filename [startup-config]? Accessing tftp://192.168.2.36/abc-confg... Loading abc-confg from 192.168.2.36 (via FastEthernet0/0): ! [OK - 1115 bytes] [OK] 1115 es copied in 12.356 secs (90 bytes/sec)

3) Haciendo copia desde el servidor TFTP Server con IP 192.168.2.36 donde el archivo origen es abc-confg, directamente a la RAM

ABC#copy tftp://192.168.2.36/abc-confg running-config Destination filename [running-config]? Accessing tftp://192.168.2.36/abc-confg... Loading abc-confg from 192.168.2.36 (via FastEthernet0/0): ! [OK - 1115 bytes] 1115 bytes copied in 9.680 secs (115 bytes/sec) ABC# *Aug 11 02:17:54.043: %SYS-5-CONFIG_I: Configured from tftp://192.168.2.36/abc-confg by console 4) Nuestro router es un Cisco 1841
ABC#show version Cisco IOS Software, 1841 Software (C1841-ADVENTERPRISEK9-M), Version 12.4(24)T6, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2011 by Cisco Systems, Inc. Compiled Tue 23-Aug-11 00:41 by prod_rel_team ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1) ABC uptime is 1 hour, 27 minutes System returned to ROM by power-on System image file is "flash:c1841-adventerprisek9-mz.124-24.T6.bin" This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http://www.cisco.com/wwl/export/crypto/tool/stqrg.html If you require further assistance please contact us by sending email to export@cisco.com. Cisco 1841 (revision 7.0) with 238592K/23552K bytes of memory. Processor board ID FTX144500DK 2 FastEthernet interfaces 2 Low-speed serial(sync/async) interfaces 2 Virtual Private Network (VPN) Modules DRAM configuration is 64 bits wide with parity disabled. 191K bytes of NVRAM. 62720K bytes of ATA CompactFlash (Read/Write) Configuration register is 0x2102

5) Mostramos la estructura de directorio del sistema, donde la ubicacin de la CLI es indicada por el *, y lo puede confirmar con PWD.
ABC#show file systems File Systems: Size(b) Free(b) Type Flags Prefixes - opaque rw archive: - opaque rw system: - opaque rw tmpsys: - opaque rw null: - network rw tftp: 196600 185207 nvram rw nvram: 64000000 23470080 disk rw flash:# - opaque wo syslog: - opaque rw xmodem: - opaque rw ymodem: - network rw rcp: - network rw pram: - network rw http: - network rw ftp: - network rw scp: - opaque ro tar: - network rw https: - opaque ro cns:

6) Mostramos el contenido de la flash


ABC#dir flash: Directory of flash:/ 1 -rw- 40523476 Feb 23 2013 02:59:58 +00:00 c1841-adventerprisek9-mz.124-24.T6.bin

64000000 bytes total (23474176 bytes free)

7) Hacemos copia de la imagen al servidor TFTP


ABC#copy flash: tftp: Source filename []? c1841-adventerprisek9-mz.124-24.T6.bin Address or name of remote host []? 192.168.2.36 Destination filename [c1841-adventerprisek9-mz.124-24.T6.bin]? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 40523476 bytes copied in 277.524 secs (146018 bytes/sec)

8) No olvidar que dicha FLASH en este modelo es extrable y en formato FAT32


ABC#
*Aug 11 03:08:56.995: %FILESYS-5-CF: External CompactFlash removed

9) Volvemos a insertarlo:
ABC# Flash card inserted in flash. Reading filesystem on the device... Wait for the completion message before accessing device Filesystem read completed in flash. Device in flash available for use *Aug 11 03:09:23.023: %FILESYS-5-CF: External CompactFlash inserted

10) Debido a que ya tenemos copias de respaldo de la imagen o IOS y de la configuracin, podemos eliminar el contenido de la NVRAM y de la FLASH.
ABC#delete nvram:startup-config Delete filename [startup-config]? Delete nvram:startup-config? [confirm] [OK] ABC# ABC#delete flash:/c1841-adventerprisek9-mz.124-24.T6.bin Delete filename [c1841-adventerprisek9-mz.124-24.T6.bin]? Delete flash:/c1841-adventerprisek9-mz.124-24.T6.bin? [confirm] ABC#

11) Podemos reiniciar el router con reload y veremos que se inicia en modo ROM Monitor ya que no existe imagen. Desde ah usamos la herramienta de lnea de comando TFTPDNLD de ayuda en este modo.

ABC#reload Proceed with reload? [confirm] *Aug 11 03:21:12.619: %SYS-5-RELOAD: Reload requested by admin on console. Reload Reason: Reload Command. System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 2006 by cisco Systems, Inc. PLD version 0x10 GIO ASIC version 0x127 c1841 platform with 262144 Kbytes of main memory Main memory is configured to 64 bit mode with parity disabled Readonly ROMMON initialized program load complete, entry point: 0x8000f000, size: 0xcb80 boot: cannot determine first executable file name on device "flash:" System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 2006 by cisco Systems, Inc. PLD version 0x10 GIO ASIC version 0x127 c1841 platform with 262144 Kbytes of main memory Main memory is configured to 64 bit mode with parity disabled Readonly ROMMON initialized program load complete, entry point: 0x8000f000, size: 0xcb80 boot: cannot determine first executable file name on device "flash:" System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 2006 by cisco Systems, Inc. PLD version 0x10 GIO ASIC version 0x127 c1841 platform with 262144 Kbytes of main memory Main memory is configured to 64 bit mode with parity disabled Readonly ROMMON initialized rommon 1 >

12) Mostramos la salida del comando tftpdnld desde ROMMON, y no preparamos para establecer las variables requeridas que se activaran sobre la primera interface LAN del router para obtener acceso a la red y asi comunicarse con el Servidor TFTP y descargar el archivo previamente establecido. (no olvidar incluir la extensin .bin)
rommon 2 > tftpdnld Missing or illegal ip address for variable IP_ADDRESS Illegal IP address. usage: tftpdnld [-hr] 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=18) TFTP_TIMEOUT: Overall timeout of operation in seconds (default=7200) TFTP_CHECKSUM: Perform checksum test on image, 0=no, 1=yes (default=1) FE_PORT: 0= (default), 1 FE_SPEED_MODE: 0=10/hdx, 1=10/fdx, 2=100/hdx, 3=100/fdx, 4=Auto (default) TFTP_DESTINATION: The flash destination device for the file flash:(default), usbflash0: Command line options: -h: this help screen -r: do not write flash, load to DRAM only and launch image

13) Establecemos las variables


rommon 3 > IP_ADDRESS=192.168.2.35 rommon 4 > IP_SUBNET_MASK=255.255.255.224 rommon 5 > DEFAULT_GATEWAY=192.168.2.33 rommon 6 > TFTP_SERVER=192.168.2.36 rommon 7 > TFTP_FILE=c1841-adventerprisek9-mz.124-24.T6.bin

14) Procedemos a ejecutar la descarga


rommon 13 > tftpdnld IP_ADDRESS: 192.168.2.35 IP_SUBNET_MASK: 255.255.255.224 DEFAULT_GATEWAY: 192.168.2.33 TFTP_SERVER: 192.168.2.36 TFTP_FILE: c1841-adventerprisek9-mz.124-24.T6.bin TFTP_MACADDR: 6c:50:4d:25:1f:68 TFTP_VERBOSE: Progress TFTP_RETRY_COUNT: 18 TFTP_TIMEOUT: 7200 TFTP_CHECKSUM: Yes FE_PORT: 0 FE_SPEED_MODE: Auto Detect 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

15) Si los datos estn correctos, el Servidor TFTP est activo en la red y las conexiones del primer puerto LAN del router y el Servidor estn cableadas le damos y, y comenzara la descarga.
Receiving c1841-adventerprisek9-mz.124-24.T6.bin from 192.168.2.36 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! continua !!!!!!!!!!!!!!!!!!!!!!!!! File reception completed. Validating checksum. Copying file c1841-adventerprisek9-mz.124-24.T6.bin to flash:. program load complete, entry point: 0x8000f000, size: 0xcb80 Format: Drive communication & 1st Sector Write OK... Writing Monlib sectors. ....................................................................................................... Monlib write complete Format: All system sectors written. OK... Format: Operation completed successfully. Format of flash: complete program load complete, entry point: 0x8000f000, size: 0xcb80

16) Aplicamos reset , para reiniciar con la nueva imagen


rommon 14 > reset System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 2006 by cisco Systems, Inc. PLD version 0x10 GIO ASIC version 0x127 c1841 platform with 262144 Kbytes of main memory Main memory is configured to 64 bit mode with parity disabled

Readonly ROMMON initialized program load complete, entry point: 0x8000f000, size: 0xcb80 program load complete, entry point: 0x8000f000, size: 0xcb80
program load complete, entry point: 0x8000f000, size: 0x26a5534 Self decompressing the image : ########################################################################################## ########################################################################################## ############################ [OK]

17) Tambien podemos verificar el envio

OK!!!

You might also like