cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2009
Views
0
Helpful
5
Replies

boot system IOS from tftp server

reda-rayan
Level 1
Level 1

Hi everyone,

i've tried to setup my router to boot the IOS system from a tftp server,

1) So first configured my router from the rommon like this :

rommon 3 > tftpdnld -r

          IP_ADDRESS: 192.168.1.1
      IP_SUBNET_MASK: 255.255.255.0
     DEFAULT_GATEWAY: 192.168.1.2
         TFTP_SERVER: 192.168.1.2
           TFTP_FILE: c870-advsecurityk9-mz.151-4.M8.bin

Receiving c870-advsecurityk9-mz.151-4.M8.bin from 192.168.1.2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
Launching
Self decompressing the image : #########################################

###################### [OK]

2) afterwards i checked the show version and i got the following :

isco IOS Software, C870 Software (C870-ADVSECURITYK9-M), Version 15.1(4)M8, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Fri 07-Mar-14 13:28 by prod_rel_team

ROM: System Bootstrap, Version 12.3(8r)YI4, RELEASE SOFTWARE

Router uptime is 3 minutes
System returned to ROM by reload
System image file is "tftp://192.168.1.2/c870-advsecurityk9-mz.151-4.M8.bin"
Last reload reason: Reload Command

3) And Finaly i've configured the boot system command :

boot system tftp://192.168.1.2/c870-advsecurityk9-mz.151-4.M8.bin

i was suprised that the router could't boot the IOS after the restart and i received the below error

TFTP error 2 received (Access violation).
TFTP: Operation terminated.

                         

Any Ideas please ?

 

 

 

 

 

5 Replies 5

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

After you set the boot system command, did you save before rebooting the router?

Also, what is the output of "sh bootvar" after adding the boot system command and saving?

HTH

i'm sure i've saved the configuration, the command sh bootvar doesn't exisit  :

Router#show bootvar
             ^
% Invalid input detected at '^' marker.

 

 

Hi,

Can you try with the new image downloading from CCO software download.
Might be your existing image could be corrupted.

Connect the router and PC using a Straight cable.

     Set tftpdnld

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

 

Example:

     Rommon 1 > IP_ADDRESS=10.10.10.1

     Rommon 2 > IP_SUBNET_MASK=255.255.255.0

     Rommon 3 > DEFAULT_GATEWAY=10.10.10.2

     Rommon 4 > TFTP_SERVER=10.10.10.2

     Rommon 5 > TFTP_FILE=newimagename .bin

     Rommon 6 > tftpdnld


Regards,

Naveen

***Rate if it is Helpful***

 

 

Hi Naveen,

 

Thank you for your reply i would like to clarify that the used image is working fine because i forced the router to boot with it on the rommon and it's booting properly however it's not the case when i used the command boot system

 

I also am able to load IOS into RAM and boot directly from rommon without touching flash, but when I execute the "boot system tftp <ios_filename.bin> <tftp server ip address>" or "boot system tftp://<tftp server ip address>/<ios_filename.bin>", copy run star and reload, no luck... goes right back into rommon with error "loadprog: error - on file open boot: cannot load "tftp:c2801-advipservicesk9-mz.124-19.bin 10.0.0.69"  Strange.

Review Cisco Networking products for a $25 gift card