Il router che stai configurando è senza IOS? È entrato in modalità ROMmon e non sai cosa fare? Puoi ricaricare il sistema operativo IOS di un router Cisco che si presenta in modalità ROMmon usando Trivial File Transfer Protocol (TFTP) con il comando tftpdnld. Con questo comando puoi esclusivamente caricare file nel router in caso di emergenza.
|
rommon 1 > set
PS1=rommon ! >
IP_ADDRESS= IP_SUBNET_MASK=
DEFAULT_GATEWAY= TFTP_SERVER= TFTP_FILE= TFTP_CHECKSUM= RET_2_RTS= BSI=0 ?= |
Per visualizzare le variabili considerate obbligatorie (REQUIRED) e quali opzionali (OPTIONAL) puoi digitare il comando tftpdnld. Otterrai un output simile al seguente:
| rommon 2 > tftpdnd usage: tftpdnld [-ur] 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 -u: upgrade the rommon, system will reboot once upgrade is complete |
| rommon 3 > IP_ADDRESS=171.68.171.0 rommon 4 > IP_SUBNET_MASK=255.255.254.0 rommon 5 > DEFAULT_GATEWAY=171.68.170.3 rommon 6 > TFTP_SERVER=171.69.1.129 rommon 7 > TFTP_FILE=c2600-is-mz.113-2.0.3.Q |
Ora puoi scaricare il sistema operativo IOS nel router.
| rommon 8 > tftpdnld
IP_ADDRESS: 171.68.171.0
IP_SUBNET_MASK: 255.255.254.0 DEFAULT_GATEWAY: 171.68.170.3 TFTP_SERVER: 171.69.1.129 TFTP_FILE: c2600-is-mz.113-2.0.3.Q 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-is-mz.113-2.0.3.Q from 171.69.1.129 !!!!!!!!!!...
File reception completed.
Copying file c2600-is-mz.113-2.0.3.Q to flash. Erasing flash at 0x607c0000 program flash location 0x60440000 |