83
FTP configuration
This chapter includes these sections:
•
•
•
•
Displaying and maintaining FTP
FTP overview
Introduction to FTP
The File Transfer Protocol (FTP) is an application layer protocol for sharing files between server and client
over a TCP/IP network.
FTP uses TCP ports 20 and 21 for file transfer. Port 20 is used to transmit data, and port 21 to transmit
control commands. For more information about FTP basic operations, see RFC 959.
FTP transfers files in the following modes:
•
Binary mode: Transfers files as raw data, like
.app
,
.bin
, and
.btm
files.
•
ASCII mode: Transfers files as text, like
.txt
,
.bat
, and
.cfg
files.
Operation of FTP
FTP adopts the client/server model. Your device can function either as the client or the server (as shown
).
•
When the device serves as the FTP client, use Telnet or an emulation program to log in to the device
from the PC, execute the
ftp
command to establish a connection from the device (FTP client) to the
PC (FTP server), and then upload/download files to/from the server.
•
When the device serves as the FTP server, run the FTP client program on the PC to establish a
connection to the FTP server and upload/download files to/from the server.
Figure 26
Network diagram for FTP
When the device serves as the FTP client, you need to perform the following configuration: