- Install
- yum install tftp-server
- Setup
- nano /etc/xinetd.d/tftp
- Find
disable = yes
, make itno
change server_args to the location that you want the root of the tftp server to be in
-v is necessary so the tftp will log all requests
- -c option allows you to upload files to the tftp server without them first existing
server_args = -v -s /tftpboot
- Start TFTP Server (Note: auto-startup tftp might not be good idea)
- /sbin/chkconfig tftp on
- /sbin/chkconfig xinetd on
/sbin/service xinetd start
- Testing
- touch /tftpboot/test
- From another computer, Linux, OS X:
- tftp [ip of tftp server]
- tftp get test
- tftp quit
- From another computer, Windows OS:
- tftp 192.168.0.1 GET test
- If you can see “
test
” under the current directory, then this TFTP server should work properly. - If not, check the firewall, open UDP port 69. You can run
system-config-security
to open it. - You can use grep tftp /var/log/messages to see the log
Installing and Configuring TFTP Server on Linux
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment