What is TFTP Protocol

What is TFTP Protocol

Many networking equipment manufacturers allow you to backup live configurations of their devices to centralized servers via the TFTP protocol. TFTP can be used with great versatility as a network management tool and not just for saving files. TFTP servers can be used to upload new configurations to replacement devices after serious hardware failures.

They also can be used for uploading new versions of software to be run as network devices. Finally, they can be used to upload even partial configurations such as files containing updated access control lists (ACLs) that restrict access to networks and even the regular application of new passwords.

Installing The TFTP Server Software on Linux

When searching for the file, remember that the TFTP server RPM’s filename usually starts with the word “tftp-server” followed by a version number like this: tftp-server-0.33-3.i386.rpm.

Configuring The TFTP Server

The procedure to set up a TFTP Server is
the TFTP application expects files to be located in the /tftpboot directory. Change this in the /etc/xinetd.d/tftp file via the server_args option, or create your own directory just for this purpose and create a /tftpboot symbolic link to it.

It is usually best to place the TFTP files in a partition other than the root partition. TFTP files of increasing size could eventually fill the partition affecting your ability to install new software or even the overall performance of your system. This example creates a new tftpboot directory in the /var partition, and then creates a symbolic link that makes this directory appear to also be the /tftpboot directory.

[[email protected]]# mv /tftpboot /var

[[email protected]]# ln -s /var/tftpboot /tftpboot

You must restart xinetd

[[email protected]]# chkconfig tftp on

Each device must have a configuration file in the /tftpboot directory. Here’s an example of what to do for a SOHO firewall named pixfw and a configuration filename that matches Cisco’s standard naming scheme of devicename-config.

[[email protected]]# touch /tftpboot/pixfw-config

[[email protected]]# chmod 666 /tftpboot/pixfw-config

[[email protected]]# ll /tftpboot/

-rw-rw-rw- 1 root root 3011 mar 23 14:09 pixfw-config
[[email protected]]#

You can test whether the TFTP process is running with the netstat command which is used to check the TCP/UDP ports on which your server is listening. If it isn’t running then there will be no response.

[[email protected] tmp]# netstat -a | grep tftp
udp 0 0 *:tftp *:*

Also Read: File Transfer Protocol | FTP | Part 1

Sharing