H3C Technologies H3C S12500 Series Switches User Manual
Page 79
67
You can use the ftp client source command to specify a source IP address or source interface for the FTP
packets sent by the device. If a source interface (typically, a loopback or dialer interface) is specified,
its primary IP address is used as the source IP address for the FTP packets sent by the device. The source
interface and source IP address settings overwrite each other.
The ftp client source command setting applies to all FTP sessions. When you set up an FTP session by
using the ftp or ftp ipv6 command, you can also specify a different source IP address for the FTP session.
IMPORTANT:
To avoid FTP connection failures, when you specify a source interface for FTP packets, make sure the
interface has been assigned a primary IP address.
To establish an IPv4 FTP connection:
Step Command
Remarks
1.
Enter system view.
system-view N/A
2.
Specify a source IP address
for outgoing FTP packets.
ftp client source { interface interface-type
interface-number | ip source-ip-address }
Optional.
By default, the primary IP
address of the output
interface is used as the source
IP address.
3.
Return to user view.
quit
N/A
4.
Log in to the remote FTP
server.
•
(Method 1) In user view:
ftp [ server-address [ I ] [ vpn-instance
vpn-instance-name ] [ source
{ interface interface-type
interface-number | ip
source-ip-address } ] ]
•
(Method 2) In FTP client view:
a.
ftp
b.
open server-address
[ service-port ]
Use either method.
The ftp command is available
in user view; and the open
command is available in FTP
client view.
To establish an IPv6 FTP connection:
Task Command
Remarks
Log in to the remote FTP server.
•
(Method 1) In user view:
ftp ipv6 [ server-address [ service-port ]
[
vpn-instance vpn-instance-name ]
[ source ipv6 source-ipv6-address ] [ -i
interface-type interface-number ] ]
•
(Method 2) In FTP client view:
c.
ftp ipv6
d.
open ipv6 server-address [ service-port ]
[ -i interface-type interface-number ]
Use either method.
The ftp ipv6 command
is available in user
view; and the open ipv6
command is available
in FTP client view.