Configuring the FTP Client 993
n
■ If no primary IP address is configured on the source interface, the FTP
connection fails.
■ If you use the ftp client source command to first configure the source
interface and then the source IP address of the transmitted packets, the new
source IP address will overwrite the current one, and vice versa.
Follow these steps to establish an FTP connection (In IPv6 networking):
Configuring the FTP
Client
After a device serving as the FTP client has established a connection with the FTP
server (For establishing FTP connection, refer to “Establishing an FTP Connection”
on page 992.), the device can perform the following operations for the authorized
directory:
Log onto the remote FTP
server directly in user view
ftp [ server-address
[ service-port ] [ source
{ interface interface-type
interface-number | ip
source-ip-address }]]
Use either approach.
Available in user view
Log onto the remote FTP
server indirectly in FTP
client view
ftp
open server-address
[ service-port ]
To do… Use the command… Remarks
To do… Use the command… Remarks
Log onto the remote FTP
server directly in user view
ftp ipv6 [ server-address [ service-port ]
[ source ipv6 source-ipv6-address ] [ -i
interface-type interface-number ]]
Use either
approach.
Available in user
view Log onto the remote FTP
server indirectly in FTP client
view
ftp ipv6
open ipv6 server-address [ service-port ]
[ -i interface-type interface-number ]
To do… Use the command… Remarks
Display help information of
FTP-related commands supported by
the remote FTP server
remotehelp
[ protocol-command ]
Optional
Enable information display in a
detailed manner
verbose Optional
Enabled by default
Use other username to relog after
logging onto the FTP server
successfully
user username [ password ] Optional
Enable FTP client debugging debugging Optional
Disabled by default
Set the file transfer mode to ASCII ascii Optional
ASCII by default
Set the file transfer mode to binary binary Optional
ASCII by default
Change the working path on the
remote FTP server
cd pathname Optional
Exit the current directory and enter
the upper level directory
cdup Optional