79
Configuring TFTP
Trivial File Transfer Protocol (TFTP) is a simplified version of FTP for file transfer over secure reliable
networks. TFTP uses UDP port 69 for data transmission. In contrast to TCP-based FTP, TFTP does
not require authentication or complex message exchanges, and is easier to deploy. TFTP is suited
for reliable network environments.
As shown in Figure 29, the device can only operate as a TFTP client. You can upload a file from the
device to the TFTP server or download a file from the TFTP server to the device. If you download a
file with a file name that exists in the target directory, the device deletes the existing file and saves
the new one. If file download fails due to network disconnection or other reasons, the original file
cannot be restored. Therefore, use a nonexistent file name instead.
Figure 29 TFTP application scenario
FIPS compliance
The device supports the FIPS mode that complies with NIST FIPS 140-2 requirements. Support for
features, commands, and parameters might differ in FIPS mode and non-FIPS mode. For more
information about FIPS mode, see Security Configuration Guide.
TFTP is not supported in FIPS mode.
Configuring the device as an IPv4 TFTP client
1. Enter system view.
system-view
N/A
2. (Optional.) Use an ACL to
control the client's access
to TFTP servers.
tftp-server
acl
acl-number
By default, no ACL is used
for access control.
3. S
address for TFTP packets
sent by the TFTP client.
tftp
client
source
{
interface
interface-type
interface-number |
ip
source-ip-address }
By default, no
source IP
address is specified, and
the primary IP address of
the output interface is used
as the source IP address.
4. Return to user view.
quit
N/A
5. Download or upload a file
in an IPv4 network.
tftp
tftp-server {
get
|
put
|
sget
}
source-filename [ destination-filename ]
[
vpn-instance
vpn-instance-name ] [
dscp
dscp-value |
source
{
interface
interface-type interface-number |
ip
source-ip-address } ] *
specified in this command
takes precedence over the
one set by the
tftp client
source
command.
Use this command in user
view.
Internet
Device
PC
TFTP client
TFTP server