R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
233
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 an 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 fails.
• 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 firewall.
Description
Use ftp to log in to the remote FTP server and enter FTP client view.
• This command applies to IPv4 networks only.
• If you use this command without specifying any parameters, you will simply enter the FTP client view
without logging in to the FTP server.
• If you specify the parameters, you will be prompted to enter the username and password for
accessing the FTP server.
Examples
# Log in the server 192.168.0.211. The source IP address of sent FTP packets is 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
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
Syntax
ftp client source { interface interface-type interface-number | ip source-ip-address }
undo ftp client source
View
System view
Default level
2: System level
Parameters
interface interface-type interface-number: Specifies the source interface for establishing FTP connections.
The primary IP address of the source interface is used as the source IP address of packets sent to an FTP
server. If the source interface has no primary IP address specified, no FTP connection can be established.