Network requirements – H3C Technologies H3C S3600 Series Switches User Manual
Page 956
1-9
Specifying the source interface and source IP address for an FTP client
You can specify the source interface and source IP address for a switch acting as an FTP client, so that
it can connect to a remote FTP server.
Follow these steps to specify the source interface and source IP address for an FTP client:
To do…
Use the command…
Remarks
Specify the source interface
used for the current connection
ftp { cluster | remote-server }
source-interface
interface-type interface-number
Optional
Specify the source IP address
used for the current connection
ftp { cluster | remote-server }
source-ip ip-address
Optional
Enter system view
system-view
—
Specify an interface as the
source interface the FTP client
uses every time it connects to
an FTP server
ftp source-interface
interface-type interface-number
Specify an IP address as the
source IP address the FTP
client uses every time it
connects to an FTP server
ftp source-ip ip-address
Use either command
Not specified by default
Display the source IP address
used by an FTP client every
time it connects to an FTP
server
display ftp source-ip
Available in any view
z
The specified interface must be an existing one. Otherwise a prompt appears to show that the
configuration fails.
z
The value of the ip-address argument must be the IP address of the device where the configuration
is performed. Otherwise a prompt appears to show that the configuration fails.
z
The source interface/source IP address set for one connection is prior to the fixed source
interface/source IP address set for each connection. That is, for a connection between an FTP
client and an FTP server, if you specify the source interface/source IP address used for the
connection this time, and the specified source interface/source IP address is different from the
fixed one, the former will be used for the connection this time.
z
Only one fixed source interface or source IP address can be set for the FTP client at one time. That
is, only one of the commands ftp source-interface and ftp source-ip can be valid at one time. If
you execute both of them, the new setting will overwrite the original one.
Configuration Example: A Switch Operating as an FTP Server
Network requirements
A switch operates as an FTP server and a remote PC as an FTP client. The application switch.bin of
the switch is stored on the PC. Upload the application to the remote switch through FTP and use the
boot boot-loader command to specify switch.bin as the application for next startup. Reboot the switch