Tuesday, December 18, 2012

configuring tftp server in Ubuntu

Sponsored Links
We use tftp server for network boots. Loading images etc. In this post we will see how to set up a tftp server in Ubuntu.

Install xinetd:
tftp doesn't have a daemon of its own. So it uses xinetd for service control. It is not installed in Ubuntu by default.
apt-get install xinetd

Now install tftpd:
apt-get install tftpd

Create tftp content repository directory
We have to create a directory or use an existing directory to keep the images available through tftp.
mkdir /tftpboot

Create tftp xinetd configuration file:
#vi /etc/xinet.d/tftp
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
per_source = 11
csp = 100 2
}

Now the configuration is done. We can restart the xinetd to enabling tftp server.
#service xinetd restart
or
#sudo service xinetd restart

Thats it. Enjoy. Don't forget to set enough env variables on client while accessing tftp service.

Recommended Reading

1. Ubuntu Unleashed 2013 Edition: Covering 12.10 and 13.04 (8th Edition)
2. Ubuntu 12.10, 4-discs DVD Installation and Reference Set, Ed.2012
3. The TCP/IP Guide: A Comprehensive, Illustrated Internet Protocols Reference

Sponsored Links

No comments:

Post a Comment

Be nice. That's all.