Configuring Ftp; Using The Device As An Ftp Server; Configuring Basic Parameters - HP 12500 Configuration Manual

Routing switch series
Table of Contents

Advertisement

Configuring FTP

File Transfer Protocol (FTP) is an application layer protocol based on the client/server model. It is used to
transfer files from one host to another over an IP network.
FTP server uses TCP port 20 to transfer data and TCP port 21 to transfer control commands. For more
information about FTP, see RFC 959.
FTP supports the following transfer modes:
Binary mode—Used to transfer image files, such as .app, .bin, and .btm files.
ASCII mode—Used to transfer text files, such as .txt, .bat, and .cfg files.
By default, the FTP server uses ASCII mode.
FTP can operate in either of the following modes:
Active mode (PORT)—The FTP server initiates the TCP connection. This mode is not suitable when
the FTP client is behind a firewall, for example, when the FTP client resides in a private network.
Passive mode (PASV)—The FTP client initiates the TCP connection. This mode is not suitable when
the server does not allow the client to use a random unprivileged port greater than 1024.
The device can act as the FTP server or FTP client. Make sure the FTP server and the FTP client can reach
each other before establishing the FTP connection.
Figure 29 FTP application scenario

Using the device as an FTP server

Perform the configuration tasks in this section to configure the device as an FTP server.

Configuring basic parameters

Step
1.
Enter system view.
2.
Enable the FTP server.
3.
(Optional.) Use an ACL to
control access to the FTP
server.
4.
(Optional.) Configure the
idle-timeout interval.
Command
system-view
ftp server enable
ftp server acl { acl-number |
ipv6 acl-number6 }
ftp timeout minutes
64
Remarks
N/A
By default, the FTP server is disabled.
By default, no ACL is used for access
control.
The default idle-timeout interval is 30
minutes.
If no data is transferred between the
FTP server and FTP client within the
idle-timeout interval, the connection is
terminated.

Advertisement

Table of Contents
loading

Table of Contents