I. network requirements – H3C Technologies H3C S3100 Series Switches User Manual
Page 543

Operation Manual – FTP and TFTP
H3C S3100-52P Ethernet Switch
Chapter 1 FTP and TFTP Configuration
1-11
Operation
Command
Description
Display the fixed source
IP address used by a FTP
client to connect to a FTP
server
display ftp source-ip
This command can be
executed in any view.
Note:
z
The specified interface must be an existing one. Otherwise a prompt appears to
show the configuration fails.
z
The value of argument ip-address must be the IP address of the device where the
configuration is performed. Otherwise a prompt appears to show 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 only 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 effective at one time. If you execute both of them, the new setting
will overwrite the original one.
1.1.5 Configuration Example: A Switch Operating as an FTP Client
I. Network requirements
A switch operates as an FTP client and a remote PC as an FTP server.
z
Create a user account on the FTP server with the user name “switch” and
password “hello”, and authorize the user “switch” with read and write permissions
on the directory named “Switch” on the PC.
z
Configure the IP address 1.1.1.1/16 for a VLAN interface on the switch, and
2.2.2.2/16 for the PC. Ensure the route between the two is reachable.
The switch application named switch.bin is stored on the PC. Download it to the switch
through FTP to upgrade the switch application, and upload the switch configuration file
named config.cfg to the “switch” directory of the PC to backup the configuration file.