Linux/tftp

From Omnia
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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: