HP (Hewlett-Packard) JD318B Switch User Manual


 
FTP configuration
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, such as .app, .bin, and .btm files.
ASCII mode: Transfers files as text, such as .txt, .bat, and .cfg files.
FTP operation
FTP adopts the client/server model. Your device can function either as the client or the server. See Figure
36.
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 36 Network diagram for FTP
When the device serves as the FTP client, you need to perform the following configuration:
Table 8 Configuration when the device serves as the FTP client
Device Configuration Remarks
Device (FTP client)
Use the ftp command to establish the
connection to the remote FTP server
If the remote FTP server supports anonymous
FTP, the device can log in to it directly; if not,
the device must obtain the FTP username and
password first to log in to the remote FTP
server.
PC (FTP server)
Enable FTP server on the PC, and
configure the username, password,
user privilege level, and so on.
When the device serves as the FTP server, you need to perform the following configuration:
85