R21xx-HP FlexFabric 11900 Fundamentals Command Reference
79
network-operator
Examples
# Display the source address settings on the FTP client.
<Sysname> display ftp client source
The source IP address of the FTP client is 1.1.1.1.
The source IPv6 address of the FTP client is 2001::1.
ftp
Use ftp to log in to the FTP server and enter FTP client view.
Syntax
ftp [ server-address [ service-port ] [ vpn-instance vpn-instance-name ] [ source { interface interface-type
interface-number | ip source-ip-address } ] ]
Views
User view
Parameters
server-address: Specifies the IP address or host name (a string of 1 to 253 characters) of the FTP server.
service-port: Specifies the TCP port number of the FTP server, in the range of 0 to 65535. The default
value is 21.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN that the FTP server belongs to. The
vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the FTP server is on the
public network, do not specify this option.
source { interface interface-type interface-number | ip source-ip-address }: Specifies the source address
used to establish the FTP connection.
• interface interface-type interface-number: Specifies the source interface by its type and number.
The primary IP address of this interface is the source address for sent FTP packets. If no primary IP
address is configured on the source interface, the connection cannot be established.
• ip source-ip-address: Specifies the source IP address for sent FTP packets. This source address must
be an address that has been configured on the device.
Usage guidelines
This command is only applicable to IPv4 networks.
If no parameters are specified, this command enters the FTP client view without logging in to the FTP
server.
If the server parameters are specified, you are prompted to enter the username and password for logging
in to the FTP server.
Examples
# Log in to the FTP server 192.168.0.211, and specify the source IP address of sent FTP packets as
192.168.0.212.
<Sysname>ftp 192.168.0.211 source ip 192.168.0.212
Connected to 192.168.0.211 (192.168.0.211).
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
User (192.168.0.211:(none)): abc
331 Give me your password, please










