HP VPN Firewall Appliances System Management and Maintenance Command Reference
248
Connected to 192.168.0.211.
220 FTP Server ready.
User(192.168.0.211:(none)):abc
331 Password required for abc
Password:
230 User logged in.
[ftp]
ftp client source
Use ftp client source to specify a source IP address for outgoing FTP packets.
Use undo ftp client source to restore the default.
Syntax
ftp client source { interface interface-type interface-number | ip source-ip-address }
undo ftp client source
Default
The primary IP address of the output interface is used as the source IP address.
Views
System view
Default command level
2: System level
Parameters
interface interface-type interface-number: Specifies a source interface for outgoing FTP packets.
ip source-ip-address: Specifies a source IP address for outgoing FTP packets. This IP address must be one
of the IP addresses of the device.
Usage guidelines
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 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
setting and the source IP address setting overwrite each other.
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.
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.
Examples
# Specify 2.2.2.2 as the source IP address for outgoing FTP packets.
<Sysname> system-view
[Sysname] ftp client source ip 2.2.2.2