cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3118
Views
5
Helpful
12
Replies

IOS Upgrade via tftp

janaka prabath
Level 1
Level 1

Dear Sir,

I am trying to copy IOS image to Cisco 4503-E switch via tftp in ROMMON mode as someone removed image from the flash.when i check rommon commands there is no xmodem or copy commands there.,so i went with tftp.The connection between the switch and my laptop ok.

So I use following command to transfer image to flash,

rommon>boot tftp://10.0.0.1/filename.bin

but there is error called "tftp session failed: Access violation " ,. I disable windows firewall and tried several times.

I mentioned  the set command output below.

rommon> set

   PS1=rommon! >

   ConfigReg=0x0102

   Rommonver=15.0(1r)SG2

   IpAddr=10.0.0.1

   Netmask=255.0.0.0

   Broadcast=10.255.255.255

   Gateway=10.0.0.254

   BootedFilename=tftp://10.0.0.2/ios.bin

(My image is file in the root directory of tftp server)

   

Please I kindly ask you to help me as soon as possible .

Thanks in Advaned 

12 Replies 12

Mark Malone
VIP Alumni
VIP Alumni

Hi

the syntax looks abit off compared to the docs for rommon tftp  , have you tried the below way instead ?

rommon 11 > IP_ADDRESS=192.168.1.5
rommon 12 > IP_SUBNET_MASK=255.255.255.0
rommon 13 > DEFAULT_GATEWAY=192.168.1.1
rommon 14 > TFTP_SERVER=192.168.1.10
rommon 15 > TFTP_FILE=c1841-advipservicesk9-mz.124-13a.bin
rommon 16 > tftpdnld
.
IP_ADDRESS: 192.168.1.5
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 192.168.1.1
TFTP_SERVER: 192.168.1.10
TFTP_FILE: c1841-advipservicesk9-mz.124-13a.bin
TFTP_MACADDR: 00:13:80:7b:20:1e
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
...
Receiving c1841-advipservicesk9-mz.124-13a.bin from 192.168.1.10 !!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
....
File reception completed.
Validating checksum.
Copying file c1841-advipservicesk9-mz.124-13a.bin to flash.
program load complete, entry point: 0x8000f000, size: 0xc100
.
Initializing ATA monitor library.......
.
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: 0xc100
Initializing ATA monitor library.......
rommon 17 >

Dear Mr.Mark,

Thank you very much for your reply.

The switch is cisco 4503-E , there is no " tftpdnld " commnad in this switch.So i use set command to configure ip address .,aslo xmodem is not available.

Thanks

Use TFTPDNLD in Rommon

Use TFTPDNLD in Rommon

With the appearance of USB ports and SD card slot, xModem & TFTPdnld are old school and very slow.

I agree with you Leo . I just wanted to talk about "How to use TFTPDNLD"

BTW, Leo could you participate in my topic please ( Core switch selection ).

Leo Laohoo
Hall of Fame
Hall of Fame

ConfigReg=0x0102

This value is incorrect.  

Connect a console cable to the supervisor card and reboot.  I want to see the entire boot-up process, including the error messages.

Dear Mr.Leo,

Thanks for the quick reply...

I attached the screen shot of booting process (I took it before configure ip address) and tftp error massage also.It may be useful too.

Hope your kind reply.. 

Regards

Hmmmm ... Look at the error message in the TFTP screenshot:  Directory name is invalid.  

And, WTF!, the supervisor card is a Sup7E.  Aside from the archaic method of uploading an IOS using TFTPdnld or xModem, the line card as a USB port and a SD card slot.  

The IOS can be loaded using either USB port of SD card slot.

Dear Mr.Leo,

As you said I was trying to boot from USB .MY flash drive was detected and when i execute the command ,

rommon>boot usb0:filename.bin

there is an error massage called file has bad  magic number.Then i thought the issue with my ios , i tried with another LAN base ios also but the same problem .The IOSs are not corrupt . I attached screen shot and hope your kind reply again.

Regards

"Bad magic number" means the file is corrupt. 

Go to the Cisco website and compare the MD5 hash value of the file downloaded against the MD5 hash value found in the Cisco website.  Both values must match.

Thank you very much Mr.Leo

I will try again tomorrow .

Thanks

Thank you very much .

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card