Difference between revisions of "TFTP"

From ArchWiki
Jump to navigation Jump to search
(Run: cleanup)
(the real problem would be "disabling" ipv6 by simply removing the module)
Line 31: Line 31:
{{bc|# systemctl enable tftpd.socket}}
{{bc|# systemctl enable tftpd.socket}}
== Troubleshooting ==
=== tftpd startup fails if ipv6 is disabled ===
If tftpd startup fails without leaving error messages, it might be because ipv6 is disabled and you are not explicitly telling tftpd not to use ipv6. You can make tftpd start by enabling ipv6 or by telling tftpd to only use ipv4, adding the '-4' switch to /etc/conf.d/tftpd
TFTPD_ARGS="-l -4 -s /srv/tftp/"

Revision as of 22:28, 2 February 2013

The Trivial File Transfer Protocol (TFTP) provides a minimalistic means for transferring files. It is generally used as a part of PXE booting or for updating configuration and firmware on devices which have limited memory such as routers and printers.

This article describes how to set up a tftpd server under Arch Linux using the tftp-hpa package.


Install the package tftp-hpa which can be found in the official repositories.


Create a copy of the tftpd.service unit, and modify ExecStart with the appropriate directory to use as the tftp root.

# vim /etc/systemd/system/tftpd.service
Description=hpa's original TFTP daemon

ExecStart=/usr/sbin/in.tftpd -s /srv/tftp/


Start tftpd:

# systemctl start tftpd.socket tftpd.service

To start tftpd on boot:

# systemctl enable tftpd.socket