8-2
Figure 8-1 Network diagram for FTP
At present, the device can only serve as an FTP client.
When the device serves as the FTP client, you need to perform the following configuration:
Table 8-1 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.
—
Make sure that the FTP server and the FTP client can reach each other before establishing the FTP
connection.
Configuring the FTP Client
Establishing an FTP Connection
Before you can access the FTP server, you must first establish a connection from the FTP client to the
FTP server. You can either use the ftp command to establish the connection directly or use the open
command in FTP client view to establish the connection.
Source address binding means to configure an IP address on a stable interface such as an loopback
interface or Dialer interface, and then use this IP address as the source IP address of an FTP
connection. The source address binding function simplifies the configuration of ACL rules and security
policies. You just need to specify the source or destination address argument in an ACL rule as this
address to filter inbound and outbound packets on the AP ignoring the difference between interface IP
addresses as well as the affect of interface statuses. You can configure the source address by
configuring the source interface or source IP address. The primary IP address configured on the source
interface is the source address of the transmitted packets. The source address of the transmitted
packets is selected following these rules:
z If no source address is specified, the FTP client uses the IP address of the interface determined by
the matched route as the source IP address to communicate with an FTP server.