H3C Technologies H3C S7500E Series Switches User Manual
Page 100
6-4
To do…
Use the command…
Remarks
Configure the source address of
the FTP client
ftp client source { interface
interface-type interface-number | ip
source-ip-address }
Optional
A device uses the IP address
of the interface determined
by the matched route as the
source IP address to
communicate with the FTP
server by default.
Exit to system view
quit
—
Log in to the remote FTP server
directly in user view
ftp [ server-address [ service-port ]
[ source { interface interface-type
interface-number | ip
source-ip-address } ] ]
ftp
Log in to the remote FTP server
indirectly in FTP client view
open server-address [ service-port ]
Use either approach.
The ftp command is available
in user view; and the open
command is available in FTP
client view.
z
If no primary IP address is configured on the specified source interface, no FTP connection can be
established.
z
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 newly configured source IP address will take
effect instead of the current source interface, and vice versa.
Follow these steps to establish an FTP connection (In IPv6 networking):
To do…
Use the command…
Remarks
Log in to the remote FTP server
directly in user view
ftp ipv6 [ server-address
[ service-port ] [ source ipv6
source-ipv6-address ] [ -i
interface-type interface-number ] ]
ftp ipv6
Log in to the remote FTP server
indirectly in FTP client view
open ipv6 server-address
[ service-port ] [ -i interface-type
interface-number ]
Use either approach.
The ftp ipv6 command is available
in user view; and the open ipv6
command is available in FTP client
view.