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.
- H3C S12500-X Series Switches H3C S9800 Series Switches H3C S9500E Series Switches H3C S5560 Series Switches H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C WA3600 Series Access Points H3C WA2600 Series WLAN Access Points H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C S10500 Series Switches