Configuring ftp, Using the device as an ftp client, Establishing an ftp connection – H3C Technologies H3C S12500 Series Switches User Manual
Page 78

66
Configuring FTP
File Transfer Protocol (FTP) is an application layer protocol that transfers files between server and client
over a TCP/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 .bin, and .btm files.
•
ASCII mode—Used to transfer text files, such as .txt, .bat, and .cfg files.
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.
•
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.
FTP adopts the client/server model. Your switch can function either as the client or the server, as shown
in
.
Figure 26 FTP application scenario
NOTE:
If you enable FIPS mode and reboot the switch, the FTP server function is disabled. For more information
about FIPS mode, see
Security Configuration Guide.
Using the device as an FTP client
To connect to an FTP server or enter FTP client view, make sure the following requirements are met:
•
You have level-3 (Manage) user privileges on the device. In FTP client view, whether a directory or
file management command can be successfully executed depends on the authorization set on the
FTP server.
•
The device and the FTP server can reach each other.
•
You have a user account (including the username, password, and authorization) on the FTP server.
If the FTP server supports anonymous FTP, you can directly access the FTP server without a username
and password.
Establishing an FTP connection
Before you can access the FTP server, use the ftp command in user view or use the open command in FTP
client view to establish a connection to the FTP server.
- H3C S12500-X Series Switches H3C S9800 Series Switches H3C S9500E Series Switches H3C S5560 Series Switches H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C WA3600 Series Access Points H3C WA2600 Series WLAN Access Points H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C S10500 Series Switches