Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cisco 1751 cannot save set commands in ROMmon

Status
Not open for further replies.

jifitz

IS-IT--Management
Jun 10, 2004
55
0
0
US
I am really new at Cisco, not at IT. I got a 1751 for training for the CCNA test. Ran the copy running-config startup-config command. The next thing I saw was eeeeeeee accross the screen. Then I got this "loadprog: bad file magic number: 0x0
boot: cannot load "flash:". I figured out that wiped the flash. So then got an image put it on an WinAgentstftp server then I tried to use the set IP_ADDRESS=192.168.1.254 etc and ran the command but I did not see that any of the commands were saved. This is what I get with the set command rommon 1 > set
PS1=rommon ! >
TFTP_CHECKSUM=1
BSI=0
SAVE_2_RTS=21:27:34 UTC Tue Jul 15 2008
RET_2_RTS=22:05:35 UTC Tue Jul 15 2008
RET_2_RCALTS=
?=1

Please any help anyone can supply will be greatly appreciated.
 
Hereis what I get when I attempt to load a variable using the set command in rommon:
rommon 2 > set IP_ADDRESS=192.168.1.254
usage: set
rommon 3 > set
PS1=rommon ! >
TFTP_CHECKSUM=1
BSI=0
SAVE_2_RTS=21:27:34 UTC Tue Jul 15 2008
RET_2_RTS=22:05:35 UTC Tue Jul 15 2008
RET_2_RCALTS=
?=1

I could be doing this all wrong, so please advise. [bigears]
 
Hi,
You're definitely heading in the right direction.
IP_ADDRESS is one of about 5 variables you need to set before downloading a new IOS via the tftpdnld command. From memory I think the others are;

IP_SUBNET_MASK, DEFAULT_GATEWAY, TFTP_SERVER and TFTP_FILE.

If you enter tftpdnld at the rommon> prompt it will list the required set variables.
These variables are only good for each session, and not saved to nvram.
Weird that copy run start would do that, unless somebody was doing something "clever".
Once you get the IOS reloaded and you can boot normally, just do a erase start, reload to be sure.

Hope this helps,
Cheers
Dave
 
Thanks for the folow up. Here is what I get when I try, let me know where I am going wrong:

rommon 4 > set TFTP_CHECKSUM=0
usage: set
rommon 5 > set IP_SUBNET_MASK=255.255.255.0
usage: set
rommon 6 > set DEFAULT_GATEWAY=192,168.1.1
usage: set
rommon 7 > set TFTP_SERVER=192.168.1.104
usage: set
rommon 8 > set IP_ADDRESS=192.168.1.254
usage: set
rommon 9 > set TFTP_FILE=c1700-y-mz.123-26.bin
usage: set

then I entered the command and this is what I got:

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)

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

Help!![ponder]
 
I dropped the set prior to the command and I am good and done. It is all about syntax. Thanks. Problem solved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top