R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
234
ip source-ip-address: Specifies the source IP address of packets sent to an FTP server, which is one of the
IP addresses of the device.
Description
Use ftp client source to specify the source IP address of packets sent to an FTP server.
Use undo ftp client source to restore the default.
By default, the source IP address is the IP address of the output interface of the route to the server is used
as the source IP address.
Note the following:
• If you use the ftp client source command to first configure a source interface and then a source IP
address, the source IP address overwrites the source interface, and vice versa.
• If you first use the ftp client source command to specify a source IP address and then use the ftp
command to specify another source IP address, the latter is used.
• The source IP address specified with the ftp client source command applies to all FTP connections
while the one specified with the ftp command applies to the current FTP connection only.
Related commands: display ftp client configuration.
Examples
# Specify the source IP address of packets sent to an FTP server as 2.2.2.2.
<Sysname> system-view
[Sysname] ftp client source ip 2.2.2.2
# Specify the IP address of interface GigabitEthernet 0/1 as the source IP address of packets sent to an
FTP server. (The interface must work at Layer 3.)
<Sysname> system-view
[Sysname] ftp client source interface gigabitethernet 0/1
ftp ipv6
Syntax
ftp ipv6 [ server-address [ service-port ] [ vpn-instance vpn-instance-name ] [ source ipv6
source-ipv6-address ] [ -i interface-type interface-number ] ]
View
User view
Default level
3: Manage level
Parameters
server-address: IP address or host name of the remote FTP server.
service-port: TCP port number of the FTP server, in the range of 0 to 65535. The default value is 21.
source ipv6 source-ipv6-address: Specifies a source IPv6 address for transmitted FTP packets. This
address must be an IPv6 address that has been configured on the firewall.
-i interface-type interface-number: Specifies the type and number of the source interface. This parameter
can be used only when the FTP server address is a link local address and the specified egress interface
has a link local address. For the configuration of link local addresses, see Network Management
Configuration Guide.