R3204P16-HP Load Balancing Module System Maintenance Command Reference-6PW101
98
<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.
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 LB module.
Description
Use the ftp client source command to specify the source IP address of packets sent to an FTP server.
Use the undo ftp client source command 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 that:
• 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