[c-nsp] Cisco FTP

Michael Costello michael.costello at gmail.com
Tue Jun 7 09:48:08 EDT 2005


> Forcing IOS into passive mode is getting me a little further along (as
> shown by debug ip ftp).  I'll post results and debug output later if
> it looks interesting or relevant.


Passive mode from the router client to a FreeBSD box running ftpd
worked.  Thank you all for your help.

For anyone interested or willing to explain why certain transfers
failed, I have included debugging output below.

-michael

Here is the sanitized output from 'debug ip ftp' when unsuccessfully
trying to connect to ftp-sj.cisco.com (which is identical to the
output when I tried to use a Windows laptop running either WS_FTP or
Golden FTP).

<snip>
*Mar  2 17:22:20.309: FTP: 227 Entering Passive Mode (198,133,219,27,194,156)
*Mar  2 17:22:20.397: FTP: ---> RETR
cisco/ios/12.3/12.3.6e/7200/c7200-js-mz.123-6e.bin
*Mar  2 17:22:20.613: FTP: 150 Opening BINARY mode data connection for
cisco/ios/12.3/12.3.6e/7200/c7200-js-mz.123-6e.bin
*Mar  2 17:22:20.613: FTP: ---> ABOR
%Error opening ftp://username:password@198.133.219.27/cisco/ios/12.3/12.3.6e/7200/c7200-js-mz.123-6e.bin
(Undefined error)
Router#
*Mar  2 17:22:22.617: FTP: 550
cisco/ios/12.3/12.3.6e/7200/c7200-js-mz.123-6e.bin: No such file or
directory
*Mar  2 17:22:22.617: FTP: ---> QUIT
*Mar  2 17:22:22.621: FTP: 500 BOR: Command not recognized


Here is the sanitized output from 'debug ip ftp' when successfully
connecting to my FTP server.

<snip>
*Mar  2 17:45:17.365: FTP: 227 Entering Passive Mode (w,x,y,z,192,9))
*Mar  2 17:45:17.429: FTP: ---> RETR pub/test.txt
*Mar  2 17:45:17.505: FTP: 150 Opening BINARY mode data connection for
'pub/test.txt' (10 bytes).
*Mar  2 17:45:17.509: FTP: ---> QUIT
*Mar  2 17:45:17.509: FTP: 226 Transfer complete.
[OK - 10/4096 bytes]
10 bytes copied in 1.744 secs (6 bytes/sec)
*Mar  2 17:45:17.757: FTP: 220 server FTP server (Version 6.00LS) ready.
*Mar  2 17:45:17.757: FTP: ---> USER anonymous
*Mar  2 17:45:17.821: FTP: 331 Guest login ok, send your email address
as password.
*Mar  2 17:45:17.821: FTP: ---> PASS foo
*Mar  2 17:45:17.957: FTP: 230 Guest login ok, access restrictions apply.
*Mar  2 17:45:17.957: FTP: ---> TYPE I
*Mar  2 17:45:18.017: FTP: 200 Type set to I.
*Mar  2 17:45:18.017: FTP: ---> PASV
*Mar  2 17:45:18.085: FTP: 227 Entering Passive Mode (w,x,y,z,192,13))
*Mar  2 17:45:18.149: FTP: ---> RETR pub/test.txt
*Mar  2 17:45:18.217: FTP: 150 Opening BINARY mode data connection for
'pub/test.txt' (10 bytes).
*Mar  2 17:45:18.221: FTP: ---> QUIT
*Mar  2 17:45:18.221: FTP: 226 Transfer complete.



More information about the cisco-nsp mailing list