96
Table 10
Configuration when the device serves as the TFTP client
Device Configuration
Remarks
Device (TFTP client)
•
Configure the IP address and routing function, and
make sure that the route between the device and the
TFTP server is available.
•
Use the
tftp
command to establish a connection to the
remote TFTP server to upload/download files to/from
the TFTP server
—
PC (TFTP server)
Enable TFTP server on the PC, and configure the TFTP
working directory.
—
Configuring the TFTP client
When a device acts as a TFTP client, you can upload a file on the device to a TFTP server or download
a file from the TFTP server to the local device. You can use either of the following methods to download
a file:
•
Normal download: The device writes the obtained file to the storage medium directly. If you
download a remote file using a filename
destination-filename
that exists in the target directory, the
device deletes the original file and saves the new one. If file download fails due to network
disconnection or other reasons, the original file will never recover because it has been deleted.
•
Secure download: The device saves the obtained file to its memory and does not write it to the
storage medium until the whole file is obtained. If you download a remote file using a filename
destination-filename
that exists in the target directory, the original file is not overwritten. If file
download fails due to network disconnection or other reasons, the original file still exists. This mode
is more secure but consumes more memory.
H3C recommends that you use the secure mode or, if you use the normal mode, specify a filename that
does not exist in the target directory.
When using the
tftp client source
or
tftp
command, you can specify the source interface (such as a
loopback) or source IP address. The primary IP address of the specified source interface or the specified
source IP address is used as the source IP address of sent TFTP packets.
The TFTP client follows these rules to select the source IP address of packets sent to the TFTP server:
•
If no source IP address is specified, the IP address of the output interface of the route to the server
is used as the source IP address.
•
The source IP address specified with the
tftp client source
or
tftp
command is used.
•
If you first use the
tftp client source
command to specify a source IP address and then use the
tftp
command to specify another source IP address, the latter is used.
•
The source IP address specified with the
tftp client source
command applies to all TFTP connections
while the one specified with the tftp command applies to the current TFTP connection only.
Follow these steps to configure the TFTP client:
To do…
Use the command…
Remarks
Enter system view
system-view
—