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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating IOS from a tftp server 2

Status
Not open for further replies.

silverhairb

IS-IT--Management
Dec 18, 2008
329
US
I've got a 3640 router in the lab that doesn't seem to want to copy a version of IOS from a tftp server. Its running IOS 11.2(23) j-mz. I'd like to try to get it running on 12.3(15) that I have on another 3640 and backed-up to a tftp server. Lab use only.

It appears that the copy format needs to be something like:

router# copy tftp: c3640-js-mz.123-15.bin flash: [maybe something here?]

but seems to have a problem with defining the destination starting with "flash:" which seems to give the error. Just using the command:

router# copy tftp: flash:

gives an error ^ under the first "t" in "tftp:".

Copying from the router to tftp: did require the filename in the command and worked OK. Copying from flash to / from a PCMCIA card in slot0 works. I'd use the PCMCIA card but its 8meg and the image is more than 16meg.

I'd certainly like to try to update that 3640 if I can.

Thanks in advance,

[the other] Bill
 
Bill,

Example 1: Copy the image to flash: from TFTP server
Upgrade the new image from a TFTP server. Use the copy tftp: flash: command in order to copy the image from TFTP server to the flash.

3600>enable
Password:xxxxx
3600#copy tftp: flash:
Address or name of remote host []? 10.10.10.2

!--- 10.10.10.2 is the IP address of the TFTP server

Source filename []? c3600-adventerprisek9-mz.124-12.bin
Destination filename [c3600-adventerprisek9-mz.124-12.bin]?y
Accessing tftp://10.10.10.2/c3600-adventerprisek9-mz.124-12.bin...
Erase flash: before copying? [confirm]y

!--- If there is not enough memory available, erase the Flash.

!--- If you have sufficient memory you can type n and press enter

Erasing the flash filesystem will remove all files! Continue? [confirm]y
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeee ...erased
Erase of flash: complete
Loading c3600-adventerprisek9-mz.124-12.bin from 10.10.10.2 (via Ethernet0/0): !!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...........
[OK - 29654656/49807356 bytes]

Verifying checksum... OK (0xAC8A)
29654656 bytes copied in 56.88 secs (80383 bytes/sec)The copy process takes several minutes. This time differs from network to network. When the copy process is in progress, messages are displayed that indicate which file has been accessed.
***********************************

This should work, I have done it with 2600's over 100 times!!!!

You can find it all here -


E.A. Broda
CCNA, CCDA, CCAI, Network +
 
Bill,

If all else fails and you have a backup copy of the IOS, erase flash and reboot and then you can use ROMON and TFTPDNLD or don't even erase FLASH just boot to ROMON and try it but try stuff below first >>>>>>>>>>>>>>

If I had a dime for every time a student erased FLASH instead of NVRAM I would be RICH !!!!

But the copy tftp: flash: should be working or ........

If not try 3600# copy ? and see what it brings up and add that and do the ? again until you have the whole command :)

E.A. Broda
CCNA, CCDA, CCAI, Network +
 
Hi Gene,

I tried those.

I initially tried a procedure for copying under rommon. The TFTPDNLD command wasn't recognized. Erased flash and booted from a PCMCIA card to the older version of IOS (from before upgrading flash from 8 to 24meg).

The copy tftp: flash: just ain't workin' in any variation of the command I've tried. I've used the copy command on other routers, but this one with its early IOS is dealing me fits. (This particular unit doesn't like fast ethernet either, but that's for another thread.)

Any ideas? (TIA!)


[the other] Bill
 
The copy tftp: flash: just ain't workin'"

No colon!!!

router#copy tftp flash

That's it! It asks you the rest!

Burt
 
Burt and Gene,

Many thanks! I'm making this soooo much harder than it needs to be. I'm expecting a lot of complexity when none exists.

The 3640 is upgraded and supporting FE's under the 12.3 IOS.

Break time. Then on to the beast (3660). :)

[the other] Bill
 

Burt,

I was womdering about those stinkin' ":"'s, that is why I went up to Cisco and copied it down.

Bill,

Whenever you are stuck (and we aren't around :)) - just do 3600# ? the "?" should give you a list of everything you can do next, or what is needed to complete the command a little further, you see that "copy" is supported here (I always get screwed up as to what can be done at 3600# and what needs to be done at "config t") then you do 3600# copy ? and get the next thing to add, then 3600# copy tftp ? .........

Have fun with that 3660 beast, make sure you throw it some raw meat before you try to configure it :)

E.A. Broda
CCNA, CCDA, CCAI, Network +
 
Thanks, Gene. I tried that, but the answer was a bit too cryptic, even for an old crypto geek. :) I do recall that the "?" returned values without the colons, but it didn't click at the time.

It is a beast. I removed the second power supply from the 3660. The sound level reminded me of a "Who" concert I attended in 1969. Its better now and it doesn't spit out the error messages it did when running on one PS with both installed.

[the other] Bill
 

Bill,

You WILL get used to what they are saying when you use "?"

When I am in my lab at work, the computers in the lab are connected to the switches in the lab so you have only a local Intranet that you are connected to for "help", if I need the Internet I need to walk over to my office, not far but I find it faster to just use the help "?".

There are a few things like setting "time" that I just have to look up with help everytime!!

E.A. Broda
CCNA, CCDA, CCAI, Network +
 
I only wish Linux CLI supported the '?"

B Haines
CCNA R&S, ETA FOI
 
The complete deal would be in a UNIX fashion...

Edge#copy tftp://10.68.68.3/2924XL-home-config.text flash:/2924XL-home-config.text
Destination filename [2924XL-home-config.text]?
Accessing tftp://10.68.68.3/2924XL-home-config.text...
Erase flash: before copying? [confirm]n
***MAKE SURE YOU SAY "N"!!!!!***
Loading 2924XL-home-config.text from 10.68.68.3 (via FastEthernet0/0): !
[OK - 1458 bytes]

Verifying checksum... OK (0x1F37)
1458 bytes copied in 0.256 secs (5695 bytes/sec)
Edge#
and then I verified the contents, though the checksum checked...

Edge#more flash:/2924XL-home-config.text
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
enable secret 5 $1$5Y3z$niVsBMY/Ft2DllyzqWCGg.
!
username xxxxxxxxxxxx privilege 15 password 0 xxxxxxxxxxxxxx
!
!
!
!
!
no spanning-tree vlan 1
ip subnet-zero
ip name-server x.x.x.x
ip name-server x.x.x.x
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
spanning-tree portfast
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface VLAN1
ip address 10.68.68.7 255.255.255.0
no ip directed-broadcast
no ip route-cache
!
ip default-gateway 10.68.68.1
logging trap debugging
logging 10.68.68.3
!
line con 0
logging synchronous
login
transport input none
stopbits 1
line vty 0 4
logging synchronous
login local
transport input telnet
line vty 5 15
logging synchronous
login local
transport input telnet
!
end

Neato, eh? You can store different config files for your router or from other routers---like a LOT, since they're 2KB...and do a more or cat, like UNIX.

WHOOPSIE..."cat" does not work...what kinda crap is THAT???lol

Burt
 
hmm.. With a little TCL your configs could change dynamically depending on environmental changes (this could include IOS changes from say IP Plus to Advanced Security in the event of a network attack.. suspected net attack) Kind of cool if you think about it! I am going to have to play after this cert! LoL

B Haines
CCNA R&S, ETA FOI
 
In Linux, there's "help", "man" (-k).

That's a switch config stored on my 2620XM, that's all.

Gene and Tad---that would make a good bug---put a switch config on a router and boot system flash:switch.confg...muahahahahaha...

Burt
 
A switch config on a router?? That is just wrong! LoL

By the way, don't think you can compare MAN/HELP to the infamous Cisco '?'

B Haines
CCNA R&S, ETA FOI
 
Now if you really wanted to be a meanie write a TCL script (if possible) that says "RTFM" every time a user types "?" in their CLI! LoL

B Haines
CCNA R&S, ETA FOI
 
What would REALLY be cool is to use alias commands...

alias exec show run show ip route

lol

Burt



 
LoL... That is just cruel! hehe

B Haines
CCNA R&S, ETA FOI
 

Burt,

We had a "real" &*#$@#@# in class once and we did that to him - he was a "know it all" or at least thought that he knew it all, I love it when students can add to the class - WHEN THEY CAN ADD TO THE CLASS :)

He learned his leason that day!!!

E.A. Broda
CCNA, CCDA, CCAI, Network +
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top