3Com Switch 8800 Advanced Software V5 Configuration Guide
1038 CHAPTER 81: FTP CONFIGURATION
Configuring the FTP
Client
Establishing an FTP
Connection
To access an FTP server, the FTP client must connect with it. Two ways are available
for the connection: using the ftp command to establish the connection directly;
using the open command in FTP client view.
Multiple routes may exist for the FTP client to successfully access the FTP server.
You can specify one by configuring the source address of the packets of the FTP
client to meet the requirement of the security policy of the FTP client. 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:
■ If no source address of the FTP client is specified, a device uses the IP address of
the interface determined by the routing protocol as the source IP address to
communicate with an FTP server.
■ If the source address is specified with the ftp client source or ftp command,
this source address is used to communicate with an FTP server.
■ If the source address is specified with the ftp client source command and
then with the ftp command, the address specified with the latter one is used
to communicate with an FTP server.
The source address specified with the ftp client source command is valid for all
FTP connections and the source address specified with the ftp command is valid
only for the current FTP connection.
Follow these steps to establish an FTP connection (In IPv4 networking):
n
■ If no primary IP address is configured on the source interface, the FTP
connection fails.
To do... Use the command... Remarks
Enter system view system-view -
Configure the source address
of the FTP client
ftp client source { ip
source-ip-address | interface
interface-type
interface-number }
Optional
A device uses the IP address of
the interface determined by
the routing protocol as the
source IP address to
communicate with the FTP
server by default.
Exit to system view quit -
Log onto the remote FTP
server directly in user view
ftp [ server-address [
service-port ] [ source { ip
source-ip-address | interface
interface-type
interface-number } ] ]
Use either approach.
Available in user view
Log onto the remote FTP
server indirectly in FTP client
view
ftp
open server-address [
service-port ]