TFTPD – Trivial File Transfer

We run Centos around here, and sometimes finding configuration information can be convoluted. Centos is the open source version of Red Hat Enterprise. Tftp is used for transferring files to routers, and remote booting systems, including cable modems.

The default tftp server is run under xinetd. To install it use “yum tftp-server” that will download the basic config etc. Once installed you need to enable it, you can use “chkconfig tftp on” but if you want to change options etc you will want to edit the config file. The tftpd config file is in /etc/xinetd.d/tftp here is ours. By default file transfer logging is NOT turned on, just add -v to the server_args and you will see the server start logging transfers to /var/log/messages (unless you modify the syslong conf.

# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -v -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4

Thats it for now..