Configure TFTP Server CentOS 6

Configure TFTP Server CentOS 6

Configure TFTP Server CentOS 6

For this blog, we are going to go over configuring a TFTP server on CentOS 6. This fits the typical example of needing a TFTP server to backup configuration files for networking devices to.

login as root, and issue the following command:

chown tftp:tftp /var/lib/tftpboot/

add an account to access the tftp server

Same screenshot: chown tftp:tftp /var/lib/tftpboot/

set permissions appropriately for the tftp directory

chown tftp:tftp /var/lib/tftpboot/ setting ownership on the TFTP directory

set the service to run on startup, as well as start the service

chkconfig xinetd on and service xinetd start

now edit the tftp configuration file

vi /etc/xinetd.d/tftp

change disable to no

xinetd tftp file with disable = no

your final configuration file should look as follows, make sure to edit the server_args line as well:

Final /etc/xinetd.d/tftp with server_args -c -p -u tftp -s /var/lib/tftpboot

from here use a tftpd client, if it’s not installed do a yum -y install tftp.x86_64

do a test transfer, the syntax is as follows:

Send a File:

tftp ipaddress -c get test.txt from the client

Receive a File:

Same command: tftp ipaddress -c get test.txt

on your server, you should notice that the file transfer completed, and the file to be TFTP’d was uploaded

ls in /var/lib/tftpboot showing the transferred test.txt

if you are using Windows 7, add/remove the TFTP client feature, the basic syntax is as follows:

Windows 7 tftp PUT test2.txt and GET test.txt, Transfer successful

That’s it!

Hosted Linux Servers at www.zwiegnet.com/go

Related guides: Configure Kickstart CentOS 6 | Configure FTP Server CentOS 6

Leave a Reply

Your email address will not be published. Required fields are marked *