Richard Burts Mon, 04/28/2008 - 07:22
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Sandeep


I believe that your best option is to use tftpdnld from rommon. tftpdnld will use TFTP to load an image while you are in rommon. To use tftpdnld you first need to set some variables. This describes those variables and how to set them:


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)


FE_SPEED_MODE: 0=10/hdx, 1=10/fdx, 2=100/hdx, 3=100/fdx, 4=Auto(deflt)



Command line options:


-r: do not write flash, load to DRAM only and launch image


rommon 2 > IP_ADDERESS=172.18.44.1


rommon 3 > IP_SUBNET_MASK=255.255.0.0


rommon 4 > DEFAULT_GATEWAY=172.18.44.44


rommon 5 > TFTP_SERVER=172.18.44.44


rommon 6 > TFTP_FILE=c2600-jk2o3s-mz.121-3.T.bin


rommon 7 > tftpdnld



IP_ADDRESS: 172.18.44.1


IP_SUBNET_MASK: 255.255.0.0


DEFAULT_GATEWAY: 172.18.44.44


TFTP_SERVER: 172.18.44.44


TFTP_FILE: c2600-jk2o3s-mz.121-3.T.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


Note that setting the variables requires that the variable name be specified in upper case letters.


For additional information you can look at this link:

http://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1903.html#wp1022683

while it was written for a different platform I believe that the instructions given will work the same on your router.


HTH


Rick

Actions

This Discussion