How to Install and Configure TFTP server on Centos / Redhat

TFTP is nothing but the Trivial File Transfer Protocol which is used for transferring files that is simpler to use than the FTP but it is less capable. It is basically used there, where user authentication and directory visibility are not required. TFTP uses the User Datagram Protocol rather than the Transmission Control Protocol . Here we are going to discuss about the installation and configuration of  TFTP server.

The TFTP listens on UDP protocol and the port number 69

TFTP server and client installation & configuration guide has prepared for following platform and services

Operating System     : CentOS release 6.4 (Server) 64bit

TFTP-Server          : tftp-server-0.49-7.el6.x86_64

tftp-client          : tftp-0.49-7.el6.x86_64

IP Address           : 192.168.1.42

Installation and configuration of TFTP by following the steps.

Step 1 : Install tftp tftp-server and xinetd

Step 2 : Enable tftp and xinetd

Step 3 : connecting to tftp server and transfer the files using put and get commands

Let us see the steps in Details :

Step 1 : Install tftp-server and xinetd

1.1 Install tftp , tftp-server and xinetd

[root@experts ~]# yum install tftp tftp-server xinetd

1.2 start xinetd service and set the service on at default boolt level.

[root@experts ~]#chkconfig xinetd on

[root@experts ~]#service xinetd start

Step 2 : Enable tftp and xinetd

2.1  modify /etc/xinetd/tftp as shown below

[root@experts ~]#vi /etc/xinetd/tftp

service tftp

{

socket_type             = dgram

protocol                = udp

wait                    = yes

user                    = root

server                  = /usr/sbin/in.tftpd

server_args             = -c -s /tftpboot -v -v -v

disable                 = no

per_source              = 11

cps                     = 100 2

flags                   = IPv4

}

Save & Exit!

2.3 Create the folter under the /

[root@experts ~]#mkdir /tftpboot

2.4 set the permission to /tftpboot folder and restart the xinetd service the changes to take effect.

[root@experts ~]#chmod 777 /tftpboot

Restart xinetd service

[root@experts ~]#service xinetd restart

stop iptables firewall

[root@experts ~]#service iptables stop

Step 3 : connecting to tftp server and transfer the files using put and get commands

3.1 verify tftp service running and port 68 is listening

[root@experts ~]#netstat -antpu|grep 69

3.2 connect tftp server 192.168.1.42

[root@experts ~]#tftp 192.168.1.42

put experts.txt

get experts.txt

Thank You.

For more details you can watch video and also Subscribe for new videos and updates.

Both comments and pings are currently closed.

Comments are closed.

Copyright ©Solutions@Experts.com
Copyright © NewWpThemes Techmark Solutions - www.techmarksolutions.co.uk