109
ip source-ip-address: Specifies an IPv4 address. For successful FTP packet transmission, make
sure this address is the IPv4 address of an interface in up state on the device.
Usage guidelines
If you execute this command multiple times, the most recent configuration takes effect.
The source address specified with the ftp command takes precedence over the source address
specified with the ftp client source command.
The source address specified with the ftp client source command applies to all FTP connections.
The source address specified with the ftp command applies only to the FTP connection that is being
established.
Examples
# Specify the source IPv4 address of 192.168.20.222 for FTP packets sent to an IPv4 FTP server.
<Sysname> system-view
[Sysname] ftp client source ip 192.168.20.222
Related commands
ftp
ftp ipv6
Use ftp ipv6 to log in to an IPv6 FTP server and enter FTP client view.
Syntax
ftp ipv6 [ ftp-server [ service-port ] [ vpn-instance vpn-instance-name ] [ dscp dscp-value | source
{ ipv6 source-ipv6-address | interface interface-type interface-number } ] * [ -i interface-type
interface-number ] ]
Views
User view
Predefined user roles
network-admin
Parameters
ftp-server: Specifies the IPv6 address or host name of an FTP server. A host name can be a
case-insensitive string of 1 to 253 characters. Valid characters for a host name include letters, digits,
hyphens (-), underscores (_), and dots (.).
service-port: Specifies the TCP port number of the FTP server, in the range of 0 to 65535. The
default is 21.
dscp dscp-value: Specifies the DSCP value for IPv6 to use in outgoing FTP packets to indicate the
packet transmission priority. The value range is 0 to 63. The default is 0.
source { ipv6 source-ipv6-address | interface interface-type interface-number }: Specifies the
source address used to establish the FTP connection.
• interface interface-type interface-number: Specifies an interface by its type and number. This
option can be used only when the FTP server address is a link local address and the specified
output interface has a link local address. For information about link local addresses, see Layer
3—IP Services Configuration Guide.
• ipv6 source-ipv6-address: Specifies an IPv6 address. To establish the FTP connection
successfully, make sure this address is the IPv6 address of an interface in up state on the
device.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the FTP server
belongs. The vpn-instance-name argument represents the VPN instance name, a case-sensitive