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

I failed download the IOS to rouer from FTP on some routers

jeffrey.zhou
Level 1
Level 1

failed to use ftp to copy an IOS image to some routers. I ever used two types of FTP server (Serv-U FTP Server 4.0 & 3CDeamon) and verified the username and the password were correct. I found the error messages were varied on these servers but when I used a sniffer to trace, I found both the FTP failed after the router send out a FTP command '<FF>ABOR'.

1.On Serv-U FTP Server 4.0, I found the error message as follows:

Router side(debug ip ftp):

GZ101102#copy ftp flash:

Address or name of remote host [192.196.11.4]? 192.168.11.4

Source filename [rsp-jsv-mz.121-14.E3.bin]?

Destination filename [rsp-jsv-mz.121-14.E3.bin]?

Accessing ftp://192.168.11.4/rsp-jsv-mz.121-14.E3.bin...

%Error opening ftp://192.168.11.4/rsp-jsv-mz.121-14.E3.bin (Protocol error)

Apr 14 14:22:32.174: FTP: 220 Serv-U FTP Server v4.0 for WinSock ready...

Apr 14 14:22:32.174: FTP: ---> USER macroview

Apr 14 14:22:32.630: FTP: 331 User name okay, need password.

Apr 14 14:22:32.630: FTP: ---> PASS macroview

Apr 14 14:22:33.134: FTP: 230 User logged in, proceed.

Apr 14 14:22:33.134: FTP: ---> TYPE I

Apr 14 14:22:33.634: FTP: 200 Type set to I.

Apr 14 14:22:33.634: FTP: ---> PASV

Apr 14 14:22:34.402: FTP: 227 Entering Passive Mode (192,168,11,4,5,238)

Apr 14 14:22:34.410: FTP: ---> RETR rsp-jsv-mz.121-14.E3.bin

Apr 14 14:22:34.978: FTP: 150 Opening BINARY mode data connection for rsp-jsv-mz.121-14.E3.bin (14614384 bytes).

Apr 14 14:22:34.990: FTP: ---> ABOR

Apr 14 14:22:35.438: FTP: 500 'BOR': command not understood.

Apr 14 14:22:35.638: FTP: 426 Data connection closed, file transfer rsp-jsv-mz.121-14.E3.bin aborted.

Apr 14 14:22:35.642: FTP: ---> QUIT

Apr 14 14:22:36.142: FTP: 221 Goodbye!

On Server logging, the message indicated the command 'ÿ?ABOR" can not be understood and closed the connection.

2. On FTP server 3CDaemin server:

I found the connection will hang "Accessing ftp://202.38.199.123/rsp-jsv-mz.121-14.E3.bin..." until I close my ftp server and then it return to "%Error reading ftp://202.38.199.123/rsp-jsv-mz.121-14.E3.bin (Connection timed out)"

On router side, the error message as follows:

GZ101102#copy ftp flash:

Address or name of remote host [192.168.11.4]? 202.38.199.123

Source filename [rsp-jsv-mz.121-14.E3.bin]?

Destination filename [rsp-jsv-mz.121-14.E3.bin]?

Accessing ftp://202.38.199.123/rsp-jsv-mz.121-14.E3.bin...

<note-the router hung on here until I closed my ftp server>

%Error reading ftp://202.38.199.123/rsp-jsv-mz.121-14.E3.bin (Connection timed out)

Apr 14 14:33:43.109: FTP: 220 3Com 3CDaemon FTP Server Version 2.0

Apr 14 14:33:43.109: FTP: ---> USER macroview

Apr 14 14:33:43.813: FTP: 331 User name ok, need password

Apr 14 14:33:43.813: FTP: ---> PASS macroview

Apr 14 14:33:44.529: FTP: 230 User logged in

Apr 14 14:33:44.529: FTP: ---> TYPE I

Apr 14 14:33:45.225: FTP: 200 Type set to I.

Apr 14 14:33:45.225: FTP: ---> PASV

Apr 14 14:33:45.929: FTP: 227 Entering passive mode (202,38,199,123,4,148)

Apr 14 14:33:46.245: FTP: ---> RETR rsp-jsv-mz.121-14.E3.bin

Apr 14 14:33:47.029: FTP: 125 Using existing data connection

Apr 14 14:33:47.669: FTP: ---> ABOR

Apr 14 14:33:47.981: FTP: 226 Closing data connection; File transfer successful.

GZ101102#

Apr 14 14:34:08.505: FTP: 226 Closing data connection; File transfer successful.

Apr 14 14:34:08.505: FTP: ---> QUIT

Apr 14 14:34:08.797: FTP: open to 202.38.199.123 failed -- Connection refused by remote host

On Server side, the error message as follows:

Apr 14, 2003 22:33:44 Session 2, Peer 218.19.59.109 FTP Server session started

Apr 14, 2003 22:33:45 Session 2, Peer 218.19.59.109 FTP: Thread 528 Command Received: USER macroview

Apr 14, 2003 22:33:45 Session 2, Peer 218.19.59.109 USER macroview

Apr 14, 2003 22:33:45 Session 2, Peer 218.19.59.109 331 User name ok, need password

Apr 14, 2003 22:33:45 Session 2, Peer 218.19.59.109 FTP: Thread 528 Status: 331 User name ok, need password

Apr 14, 2003 22:33:45 Session 2, Peer 218.19.59.109 FTP: Login attempt by: macroview

Apr 14, 2003 22:33:45 Session 2, Peer 218.19.59.109 FTP: Thread 528 Command Received: PASS macroview

Apr 14, 2003 22:33:45 Session 2, Peer 218.19.59.109 PASS XXXXXXX

Apr 14, 2003 22:33:45 Session 2, Peer 218.19.59.109 230 User logged in

Apr 14, 2003 22:33:45 Session 2, Peer 218.19.59.109 FTP: Thread 528 Status: 230 User logged in

Apr 14, 2003 22:33:45 Session 2, Peer 218.19.59.109 FTP: Login successful

Apr 14, 2003 22:33:46 Session 2, Peer 218.19.59.109 FTP: Thread 528 Command Received: TYPE I

Apr 14, 2003 22:33:46 Session 2, Peer 218.19.59.109 TYPE I

Apr 14, 2003 22:33:46 Session 2, Peer 218.19.59.109 200 Type set to I.

Apr 14, 2003 22:33:46 Session 2, Peer 218.19.59.109 FTP: Thread 528 Status: 200 Type set to I.

Apr 14, 2003 22:33:47 Session 2, Peer 218.19.59.109 FTP: Thread 528 Command Received: PASV

Apr 14, 2003 22:33:47 Session 2, Peer 218.19.59.109 PASV

Apr 14, 2003 22:33:47 Session 2, Peer 218.19.59.109 227 Entering passive mode (202,38,199,123,4,148)

Apr 14, 2003 22:33:47 Session 2, Peer 218.19.59.109 FTP: Thread 528 Status: 227 Entering passive mode (202,38,199,123,4,148)

Apr 14, 2003 22:33:48 Session 2, Peer 218.19.59.109 FTP: Thread 528 Command Received: RETR rsp-jsv-mz.121-14.E3.bin

Apr 14, 2003 22:33:48 Session 2, Peer 218.19.59.109 RETR rsp-jsv-mz.121-14.E3.bin

Apr 14, 2003 22:33:48 Session 2, Peer 218.19.59.109 FTP: Starting GET file transfer of D:/IOS/rsp-jsv-mz.121-14.E3.bin

Apr 14, 2003 22:33:48 Session 2, Peer 218.19.59.109 125 Using existing data connection

Apr 14, 2003 22:33:48 Session 2, Peer 218.19.59.109 FTP: Thread 528 Status: 125 Using existing data connection

Apr 14, 2003 22:33:48 Session 2, Peer 218.19.59.109 Transferring file: D:/IOS/rsp-jsv-mz.121-14.E3.bin

Apr 14, 2003 22:33:49 Session 2, Peer 218.19.59.109 226 Closing data connection; File transfer successful.

Apr 14, 2003 22:33:49 Session 2, Peer 218.19.59.109 FTP: Thread 528 Status: 226 Closing data connection; File transfer successful.

Apr 14, 2003 22:33:49 Session 2, Peer 218.19.59.109 13312 bytes in 1 seconds (13 KBytes/sec)

Apr 14, 2003 22:33:49 Session 2, Peer 218.19.59.109 FTP: Thread 528 Command Received: ÿ?ABOR

Apr 14, 2003 22:33:49 Session 2, Peer 218.19.59.109 ÿ?ABOR

Apr 14, 2003 22:33:49 Session 2, Peer 218.19.59.109 ABOR

Apr 14, 2003 22:33:49 Session 2, Peer 218.19.59.109 13312 bytes in 1 seconds (13 KBytes/sec)

5 Replies 5

ccholev
Level 1
Level 1

Dear Jeffrey,

let me introduce myself, my name is Chavdar Cholev.

I work for Coca-Cola HBC Bulgaria.....

I had a problem like yours... why do not you

try with following command in global config. mode.

SOFIA_HUB#conf t

Enter configuration commands, one per line. End with CNTL/Z.

SOFIA_HUB(config)#ip ftp source-interface serial 0/0

SOFIA_HUB(config)#ip ftp source-interface serial 0/0

I think that it should work....

My E-mail is chavdar.cholev@cchbc.com

Please feel free to contact me and if I can help you with something I will

Best regards &

with wishes for all the best

Dear chavdar:

I ever tried this configuration, it seems not working, and from the sniffer and the logging of the FTP server, the rourter had used its closest address as source address such as my FTP server's IP address is 192.168.11.4 and the source address of the FTP packet used by the router is 192.168.11.253.

In addition, i found that before the router actually downloaded the image from the FTP server, it will try to retrieve the file first to confirm the file can be reached and existing, and then send the 'ABOR' command to abort the download and then completed the procedure such as ask if you confirm to erase the flash, etc. But in my case, it seems when the router send the command 'ABOR', there was some problems and the router add the 0xFF prefix to the command (i can see it from the sniffer trace), it lead to the Serv-U can not understood the command, but another FTP server (3CDaemon) also failed, and I don't know why the router will hang after it send the 'ABOR' command.

Best Regards

Jeffrey

milan.kulik
Level 10
Level 10

Hi,

what IOS version are you running?

There is ftp bug in IOS: CSCdv70284.

FTP doesn't work with IOS 12.0. but it does with 12.2(13)T1 on my router.

Regards,

Milan

I tried the FTP download on some IOS platforms such as 12.1.4E, 12.2.11(T2). On these version, I failed to use FTP, but I remember I ever succeed on 12.1.5T9. But the bug stated that the first found-in version is 12.2.6, but there was no 12.1 release in the affected version list.

Regards

Jeffrey

I tried to use IOS(c6sup22-jsv-mz.121-8a.E5.bin) to download an image from FTP server, but i found some strange situation on it.

M-STJ-6509-A#copy ftp://macroview:macroview@218.19.59.109// sup-bootflash:

Source filename []? rsp-jsv-mz.121-14.E3.bin

Destination filename [rsp-jsv-mz.121-14.E3.bin]?

Accessing ftp://macroview:macroview@218.19.59.109/rsp-jsv-mz.121-14.E3.bin...

%Warning: File not a valid executable for this system

Abort Copy? [confirm]n

Loading rsp-jsv-mz.121-14.E3.bin !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...

And in the end the download was successful.