how to load my ios file back?

i'm upgrading the flash of my 2620. i know there's no ios in the new flash and the router will lead u to rommon>, but cisco website only tells u how to do the flash upgrade, i didn't see instructions on how to load back the ios file from tftp server. any body give a clue?

32m/8f upgrading to 64/16, the bootup shows 64mb memory recognized, then into rommon>, i'm not sure any command to use.

Comments

  • mikej412mikej412 Member Posts: 10,086 ■■■■■■■■■■
    You can look at the ROMmon Recovery for the Cisco 2600 Series Router and the VG200

    But down at the bottom of that doc is the direct link to Using the tftpdnld Command

    You could also try the Xmodem Console Download Procedure Using ROMmon link, if you like pain. icon_lol.gif
    :mike: Cisco Certifications -- Collect the Entire Set!
  • I had tried both. see the result.

    tftpdnld

    Missing or illegal ip address for variable IP_ADDRESS
    Illegal IP address.

    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 17 > xmodem c2600-js-mz.122-19.bin
    Do not start the sending program yet...
    File size Checksum File name
    16490998 bytes (0xfba1f6) 0xcd5a 22

    WARNING: All existing data in bootflash will be lost!
    Invoke this application only for disaster recovery.
    Do you wish to continue? y/n [n]: y
    Ready to receive file c2600-js-mz.122-19.bin ...
    BB0BB0
    Timeout waiting for data - aborting download...

    I prefer using tftpdnld, but the problem is, i don't know what the connection would be? what ip should i assign to 2620's fa port? i used 192.168.110 just because my tftp server is 192.168.0.102. But, apparently the display told me wrong ip. I setup all the info in rommon> as below
    rommon>ip_address=192.168.0.110
    rommon>ip_network_mask=255.255.255.0
    rommon>default_gateway=192.168.0.1
    rommon>tftp_server=192.168.0.102
    rommon>tftp_file=/ios/c2600-js-mz.122-19.bin
  • Danman32Danman32 Member Posts: 1,243
    Did you check the results of the variables with the SET command?
  • Danman32 wrote:
    Did you check the results of the variables with the SET command?

    yes

    rommon 29 > set
    PS1=rommon ! >
    RET_2_RTS=
    BSI=0
    ip_subnet_mask=255.255.255.0
    default_gateway=192.168.0.1
    tftp_server=192.168.0.102
    tftp_file=/ios/c2600-js-mz.122-19.bin
    tftp_checksum=0
    ?=0
    ip_address=192.168.0.110
  • mikej412mikej412 Member Posts: 10,086 ■■■■■■■■■■
    is it case sensitive?
    IP_ADDRESS vs ip_address
    :mike: Cisco Certifications -- Collect the Entire Set!
  • I guess the trick will be the ip address of 2620's fastethernet port. who know what it shall be? with what can i decide the address.
  • mikej412mikej412 Member Posts: 10,086 ■■■■■■■■■■
    madonion wrote:
    I guess the trick will be the ip address of 2620's fastethernet port.
    Or, you just give it the UPPER_CASE environment variables it seems to be looking for. icon_lol.gif
    :mike: Cisco Certifications -- Collect the Entire Set!
  • oh my god!(God!), mike(Mike) u'r damn right!!! I never think it's case sensitive! come on it's on a command line! does DOS command case sensitive? icon_lol.gif

    now it's done, i'm running enterprise edition to figure out VLAN. Thanks everyone!
  • TheShadowTheShadow Member Posts: 1,057 ■■■■■■□□□□
    Cisco programmers tend to be unix/linux types meaning they think in case sensitivity by default, so do I. Uppercase tokens for variables are common. filty habit. :D
    Who knows what evil lurks in the heart of technology?... The Shadow DO
  • mikej412mikej412 Member Posts: 10,086 ■■■■■■■■■■
    TheShadow wrote:
    Uppercase tokens for variables are common. filty habit. :D
    icon_lol.gif Hey -- my 20 year UNIX anniversary has got to be coming up soon -- if it hasn't already passed!

    Maybe I should look for an old AT&T 3B2 on eBay -- and I could put it out in the Barn in winter to keep the Barn Cats warm!
    :mike: Cisco Certifications -- Collect the Entire Set!
  • BubbaJBubbaJ Member Posts: 323
    TheShadow wrote:
    Uppercase tokens for variables are common. filty habit. :D
    This is a good practice in more advanced Cisco exams. Use upper/mixed case to make your named items (route maps, key chains, access lists, etc.) stand out in a configuration file. It's the same principle, and it can save you time during troubleshooting.
Sign In or Register to comment.