copying the image from one router to an other .

Unanswered Question
Dec 24th, 2008
User Badges:

I would like to copy one ios image from one router to an other. we just put in 2x VWIC card on 3745 and we could not detect the card . the ios is ipvoice.. we have an other location that have ipbase ios and we can see the VWIC there. so we call cisco and tech said ya U need to chng the ios , no that may not be true . but just for the heck of it I will do it,

now I just need a baby steps and easy way to do it with out taking down the router ..


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (10 ratings)
Pari Thiagasundaram Wed, 12/24/2008 - 09:36
User Badges:
  • Silver, 250 points or more

Download and install any TFTP Server software on your laptop/desktop.

(Example: tftpd from

Make sure you can ping from your router to your laptop.

Copy the image from the router to your tftp server. (Use the copy command from CLI)

Download the image from the tftp to your second router.

Change the boot string on your second router to boot from this new image.

Reload your second router.

Abracadabra !

cisco steps Wed, 12/24/2008 - 09:58
User Badges:

did what you said pthiagas now i have an other copy on my router.. it did not work look @ the final result . now I need to delete # 2 cause it was not in there

r1 #ping x.x.x.x---my laptop

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to x.x.x.x, timeout is 2 seconds:


Success rate is 100 percent (5/5), round-trip min/avg/max = 264/264/268 ms

r1#show flash

-#- --length-- -----date/time------ path

1 14450024 Mar 01 1993 00:04:08 -05:00 c3745-ipbase-mz.124-1b.bin

17879040 bytes available (14450688 bytes used)

r1#copy flash:c3745-ipbase-mz.124-1b.bin tffp

Destination filename [tffp]? laptop








14450024 bytes copied in 30.972 secs (466551 bytes/sec)

r1#show flash

-#- --length-- -----date/time------ path

1 14450024 Mar 01 1993 00:04:08 -05:00 c3745-ipbase-mz.124-1b.bin

2 14450024 Dec 24 2008 12:51:48 -05:00 x.x.x.x

3428352 bytes available (28901376 bytes used)

Giuseppe Larosa Wed, 12/24/2008 - 09:43
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

Hello Octorbust,

one router can act as tftp server for the other

you need to specify the file name


tftp-server flash:c3640-js-mz.124-18.bin

use dir /all to find the ios name

do it on the source router

on the target router verify if you have enough space to write the new image

I do think so with a C3745

on the target c3745

copy tftp flash type enter

you are asked the ip address

the remote filename

the local filename

verify before you have connectivity with the source router.

after downloading the file check it with verify command

using show bootvar or sh run | inc boot

you need to add a

boot system flash statement with the new file in first position.

when it is fine save the configuration.

during a scheduled downtime issue the reload command

the target router should load the new image

Hope to help


cisco steps Wed, 12/24/2008 - 10:14
User Badges:

Giuseppe ..

I would like to try ur option , nothing against pthiagas response it just did not work or what not clear what needs to be done, but know I am stucked w/ an extra image on my source router.. can you help on how to delete that one w/ out taking the netwok down.. Thanks

Pari Thiagasundaram Wed, 12/24/2008 - 10:36
User Badges:
  • Silver, 250 points or more


Do delete an image from router 1,

"delete flash:filename_to_delete"

What you did wrong is:

r1#copy flash:c3745-ipbase-mz.124-1b.bin tffp

Destination filename [tffp]? laptop

What you should have done is:

r1#copy flash:c3745-ipbase-mz.124-1b.bin tftp:

Destination filename

Note the spelling mistake for tftp and a missing ":"

The first question it prompts is a file name and not an IP Address.

Please make sure you take time to do this and never do it in a hurry as you may end up without an image on your router.

cisco steps Wed, 12/24/2008 - 10:41
User Badges:

so in this case its

r1#delete flash:

is that correct? because x.x.x. is the name that was in there wich is the Ip address of the server


viyuan700 Wed, 12/24/2008 - 11:07
User Badges:
  • Silver, 250 points or more

Dont delete any file now.

U want to copy image from router 1 to router 2. So u have to copy from router 1 to ur laptop. Which is not successful as u copied to R1 itself instead tftp server.

Can you see c3745-ipbase-mz.124-1b.bin on ur tftp server in ur laptop. if not copy again this timeit shd be tftp: not tffp.

If yes, ping from other router to your laptop if success ful .

Go to other router

copy from tftp: flash:

then provide ur tftp server IP

Once new image is there on your router 2, manually boot from router 2 using new image.Set bootpath for new image.

IF it works fine then do any delete work.

In case any doubt post it.

cisco steps Wed, 12/24/2008 - 11:18
User Badges:

thanks for your input . the new problem that I have know is that this is a router in production ,, I just added an extra image wich is the same one look @ show flash input

r1#show flash

-#- --length-- -----date/time------ path

1 14450024 Mar 01 1993 00:04:08 -05:00 c3745-ipbase-mz.124-1b.bin

2 14450024 Dec 24 2008 12:51:48 -05:00

I need to take this one out first

2 14450024 Dec 24 2008 12:51:48 -05:00

so my question is should I do

r1# delete flash:


viyuan700 Wed, 12/24/2008 - 11:22
User Badges:
  • Silver, 250 points or more

if u have just copied and not done anything else then u can delete ur command is correct.

cisco steps Wed, 12/24/2008 - 11:31
User Badges:

r1#delete flash:?

flash: flash:c3745-ipbase-mz.124-1b.bin

r1#delete flash:

Delete filename []? yes

Delete flash:yes? [confirm]

%Error deleting flash:yes (File not found)


am I doing something wrong

cisco steps Wed, 12/24/2008 - 11:34
User Badges:

done .. Thanks A lot .. now I am going to take a break and do the copying later ... Thanks all for your help and sorry for the confusion.,.

cisco steps Wed, 12/24/2008 - 12:27
User Badges:

now I am going to get back to copying the file .. here is what I have in mind going to happen ,, this just something that I type it and would like your opinion on it ,,I will start with

r1#config t

(config)#tftp-server flash:c3745-ipbase-mz.124-1b.bin



then when I go to r2 and I do the command I should see this,,

r2#copy tftp flash:

Address or name of remote host []?

Source filename []? c3745-ipbase-mz.124-1b.bin

Destination filename [c3745-ipbase-mz.124-1b.bin]?


This router is in production and I just want to put the image there for now t'l safe time and I will do the upgrade ,

question :

this should not effect the performance or take the router down,.,

viyuan700 Wed, 12/24/2008 - 12:41
User Badges:
  • Silver, 250 points or more

u r trying now router to router transfer

check with router 2 if it can hold 2 image. If it doesnot have space for 2 image then you cannot copy while your nework is running.

While copying if it ask something like this

Accessing tftp://

Erase flash: before copying? [confirm]

DONT CONFIRM as it is going to erase ur old file and reload and bring your network down.

this should not effect the performance or take the router down

If you have space to 2 image on router 2

If you dont change bootpath then having 2 image will not effect the performance or bring the router down.

cisco steps Wed, 12/24/2008 - 12:45
User Badges:


yes router 2 have space for the 2nd image.. now when it asked "Erase flash: before copying? [confirm]" should I type No ,, I know this is stupid question but just want to dbl chk..better safe then sorry.. :-)

viyuan700 Wed, 12/24/2008 - 12:53
User Badges:
  • Silver, 250 points or more

i have not done router to router image transfer.

Logic says if you say no it shd copy without deleting.

Since it is ur production network i will say see if anybody who has done can confirm this.

While copying from PC tftp server to router i have not seen router asking to delete old image.

I saw that erase command , while i was going through the document which explains router to router transfer.

viyuan700 Wed, 12/24/2008 - 13:03
User Badges:
  • Silver, 250 points or more

i tried the same thing on my 2811 router to 2851 and it didnot ask me to erase file

after i gave destination file name it starts copying without asking any delete and its copying.

its copied without any problem as my router has space for 2 image

process took 2 mintues so maybe you can do it when you upgrade

cisco steps Wed, 12/24/2008 - 16:02
User Badges:


I find out that even the one that I have on the other router is old now I downloaded the right IOS TO MY LAPTOP,, do you have a time to walk me trough it step by step .. I am using tftpd32 and have no clue ..

my new file is "c3745-ipbasek9-mz.124-23.bin"


viyuan700 Wed, 12/24/2008 - 16:53
User Badges:
  • Silver, 250 points or more

Do you have tftpd32 installed on your laptop. If yes start it will show you ip address. See if you can ping that address from router (IF you have wireless connection on that computer disable it . your TFTPserver shd take your LAN IP.

Ifyou can ping from ur laptop to router/, then u have to just copy with command.

copy tftp flash

see this link also it has complete info

cisco steps Fri, 12/26/2008 - 08:35
User Badges:


I have tftp32.. I can ping my laptop..

r1#show flash

-#- --length-- -----date/time------ path

1 24165624 Sep 26 2008 02:20:40 -04:00 c3745-ipvoice-mz.123-11.T.bin

8159232 bytes available (24166400 bytes used)

the file that I dwld is about 18,206,720 bytes.. it does look like I have enought space in there .. Do I?

viyuan700 Fri, 12/26/2008 - 08:48
User Badges:
  • Silver, 250 points or more

IF i am not wrong i think you dont have space for 2 image.

8,159,232 bytes available (24,166,400 bytes used)

you have 8,159,232 bytes (Approx 8MB) available wghereas your new files is 18,206,720 (18MB)

You have to delete the old one to make space for this.

U can check once again

cisco steps Fri, 12/26/2008 - 09:05
User Badges:

That is weird ... on cisco site it says


Release Date: 12/Nov/2008


Size: 17778.43 KB (18205112 bytes)

Minimum Memory: DRAM:128 MB Flash:32 MB

but when I save it on my pc and I do properties it shows 17.3 MB (18,206,720 bytes)

why is that ?

viyuan700 Fri, 12/26/2008 - 09:18
User Badges:
  • Silver, 250 points or more

Your router 2 i think that day took 2 image why dont you transfer first there use verify command .This way u will have less troubles.

command like this you can refer to link there is already in earlier message,

2600#verify flash:c2600-adventerprisek9-mz.124-12.bin

Because if this file is corrupt, it will not boot ur router. A guy have similar problem few days back where the size was not matching and that image gave error message. He has enough space for another image but you dont have.

you can downlaod once again and verify it before using it on production router to minimize problems.


This Discussion