TFTP from flash, running IOS 12.3(24)

Unanswered Question
Jan 29th, 2009
User Badges:
  • Bronze, 100 points or more

I want to xfer the IOS image on Router L to Router B.


In global config mode on Router L, the ? facility tells me that the tftp-server command can only specify files whose URL's start with null: or nvram: or system:


Except, I want to copy the IOS image out of flash.


I haven't had a problem with this in IOS 12.2...what do I need to do here?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Thu, 01/29/2009 - 20:17
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

What type of device is this?

CriscoSystems Fri, 01/30/2009 - 05:40
User Badges:
  • Bronze, 100 points or more

Sorry; I was astonished to notice that I had left that info out.


It's a 2501, running IOS 12.3(24).



Joe Clarke Fri, 01/30/2009 - 10:54
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

This sounds like a bug (or perhaps a problem with your flash). I have a few 2500s left running older code, and I am able to configure flash:. I have a few 2600s running 12.3, and I am able to configure flash: there as well. I couldn't find any matching bugs on this, so your issue may be a new one.

CriscoSystems Fri, 01/30/2009 - 11:07
User Badges:
  • Bronze, 100 points or more

If tftp from flash simply isn't an option; can you recommend a workaround?


Maybe from Rxboot or ROMMON mode?


Is there a way to copy from flash into an nvram file (it does have 16MB NVRAM...) and then tftp it from there?


Joe Clarke Fri, 01/30/2009 - 11:45
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

NVRAM isn't a workaround. It isn't nearly big enough. The only workaround I see is to copy the image from the 2501 to a host-based TFTP server, then copy that image to the new router from that host-based server.

CriscoSystems Fri, 01/30/2009 - 11:48
User Badges:
  • Bronze, 100 points or more

But copy the image _how_ ??


The whole problem is that copying the image from the 2501 isn't an option; at least not via TFTP.


Router#tftp-server ?


nvram:

null:

system:


are the only options. No "flash:"



There's the rub! Any suggestions?


Joe Clarke Fri, 01/30/2009 - 11:51
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Copy the image using the router as a TFTP client. Say you have a host-based TFTP server running on 10.1.1.1:


Router#copy flash:c2500-i-l.123-24 tftp://10.1.1.1


Then, on the router router:


Router(boot)#copy tftp://10.1.1.1/c2500-i-l.123-24 flash:

Joe Clarke Fri, 01/30/2009 - 11:52
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Sorry, I misread your first sentence. If what I stated in my previous post is not an option, then would another protocol like RCP work?

CriscoSystems Fri, 01/30/2009 - 11:56
User Badges:
  • Bronze, 100 points or more

I'm researching the rcp option right now - I've moved dozens of images around using tftp so it's a major comfort zone for me; only I've never used anything else; so I'm treading lightly.


Joe Clarke Fri, 01/30/2009 - 12:09
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

RCP is a TCP transport using tcp/514. This configuration example is for CiscoWorks, but will work in general for a user named "cwuser":


username cwuser password 7 000C1C0A05

ip rcmd rcp-enable

ip rcmd remote-host cwuser 172.17.246.221 cwuser enable

ip rcmd remote-username cwuser

CriscoSystems Fri, 01/30/2009 - 12:12
User Badges:
  • Bronze, 100 points or more

Thank you for that.


I'm familiarizing myself with "rsh" and the other stuff so I'll have a faint idea what I'm doing.


I will keep you updated!


CriscoSystems Mon, 02/02/2009 - 17:02
User Badges:
  • Bronze, 100 points or more

Now this is interesting:


==================================

Router(config)#tftp-server flash:c2500-is-l.123-24.bin

^

% Invalid input detected at '^' marker.


Router(config)#tftp-server ?

null: Allow URL file TFTP load requests

nvram: Allow URL file TFTP load requests

system: Allow URL file TFTP load requests


Router(config)#tftp-server c2500-is-l.123-24.bin

^

% Invalid input detected at '^' marker.


Router(config)#

==================================


If "flash:" isn't allowed in the tftp-server command, how come the "^" error marker only points out the colon, not the "f?" But it catches the "c" in the filename first thing.


Is this worth analyzing, or am I just dealing with a zotzed router?


Actions

This Discussion