Linux/tftp

From Omnia
Revision as of 05:29, 19 January 2021 by Kenneth (talk | contribs) (→‎Verbose Logging)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Client

tftp 10.10.10.100
> get bootstrap.ipxe
tftp 10.10.10.100 -c get bootstrap.ipxe

Put file with tftp client in Linux - Super User https://superuser.com/questions/581812/put-file-with-tftp-client-in-linux

Server

Install:

# Ubuntu
sudo apt-get install xinetd tftpd tftp

Create tftp service (not included):

/etc/xinetd.d/tftp:

service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = /tftpboot
disable         = no
}

Restart xinetd:

sudo service xinetd restart


ref: https://askubuntu.com/questions/201505/how-do-i-install-and-run-a-tftp-server

Verbose Logging

** ONLY AVAILABLE ON NEWER VERSIONS **

The version that comes with Ubuntu 16 repos does not have this feature.

To log the file requested, add "--verbose" to the server_args

xinet.d:

server_args             = -s /tftpboot --verbose

ref: