Configure an FTP Client
Configuration Condition
None
Configure the Functions of an FTP Client
On the device, when you use the copy command to copy files (Refer to the related sections in "File System Management") or use the sysupdate command to upgrade the software version (Refer to the related sections in "Software Upgrade"), the device can be triggered to act as the FTP client and set up a connection with the remote FTP server.
The connection between an FTP client and an FTP server uses the address of the outgoing interface of the route to the FTP server as the source address by default. Users can also use the ip ftp source-address or ip ftp source-interface commands to specify the FTP client source address or source interface.
Table 4-3 Configuring the Functions of an FTP Client
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Configure the source address of the FTP client.
|
ip ftp { source-interface interface-name | source-address ip-address }
|
Optional.
By default, the FTP client uses the address of the outgoing interface of the route to the FTP server as its source address to communicate with the FTP server.
|
Configure the FTP client to use the port mode first
|
ip ftp port-first
|
Optional.
By default, first use the passive mode and the server to set up the data connection.
|
-
For the security sake, some networks may restrict the communication between the address of the outgoing interface of the route from the device to the FTP server and the FTP server, but the other service interface addresses are available. In this case, users can use the ip ftp source-address or ip ftp source-interface commands to specify the FTP client source address or source interface.