HP VPN Firewall Appliances System Management and Maintenance Command Reference
247
Examples
# Display the source IP address configuration of the FTP client.
<Sysname> display ftp client configuration
The source IP address is 192.168.0.123
Related commands
ftp client source
ftp
Use ftp to log in to an IPv4 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
Default command level
3: Manage level
Parameters
server-address: IP address or host name of the FTP server, a string of 1 to 20 characters.
service-port: 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 VPN 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 configured on this interface is the source address of the transmitted FTP packets.
If no primary IP address is configured on the source interface, the connection cannot be
established.
• ip source-ip-address: The source IP address of the transmitted FTP packets. This source address must
be the one that has been configured on the device.
Usage guidelines
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 type the username and password for
accessing the FTP server.
Examples
# Log in the server 192.168.0.211 and specify the source IP address of sent FTP packets as
192.168.0.212.
<Sysname1> ftp 192.168.0.211 source ip 192.168.0.212
Trying 192.168.0.211 ...
Press CTRL+K to abort