SLAC CPE Software Engineering Group
Stanford Linear Accelerator Center
System Admin

TFTP Configuration

 

 

 

17-Jul-2015


Our TFTP server is used by IOCs to load bootloader (for linuxRT)  and OS stored in /usr/local/common/tftpboot for LCLS and FACET.

TFTP Server Installation:

yum install tftp
yum install tftp-server


TFTP Server Configuration:

For LCLS and FACET, we use lcls-builder as a TFTP server. TFTP is a service managed by xinetd.

The TFTP server configuration is done in /etc/xinetd.d/tftp:

[jingchen@lcls-builder ~]$ cat /etc/xinetd.d/tftp
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /usr/local/common/tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}

Note:

disable = no means to enable TFTP server.

files served by TFTP server is in /usr/local/common/tftpboot

TFTP Server startup and check:

- start tftp server
/etc/init.d/xinetd restart

[jingchen@lcls-builder ~]$ /sbin/chkconfig --list tftp
tftp on

on a client machine (make tftp client is installed):

tftp lcls-builder

tftp> get linuxRT/boot/undionly.kpxe
tftp> quit
ls undionly.kpxe

 





Created by: Jingchen Zhou   17-July-2015;