Difference between revisions of "Tftp"

From Klaus' wiki
Jump to: navigation, search
Line 2: Line 2:
  
 
<source lang="bash">
 
<source lang="bash">
yum install tftp*
+
$ yum install tftp*
chmod 777 /tftpboot
+
$ chmod 777 /tftpboot
vi /etc/xinetd.d/tftp ## Change disable = yes to disable = no
+
$ vi /etc/xinetd.d/tftp ## Change disable = yes to disable = no
restorecon -r /tftpboot
+
$ restorecon -r /tftpboot
system-config-securitylevel-tui ## add tftp:udp in the customize menu for other ports
+
$ system-config-securitylevel-tui ## add tftp:udp in the customize menu for other ports
service network restart
+
$ service network restart
echo "test">/tftpboot/test
+
$ echo "test">/tftpboot/test
tftp localhost ## command: get test
+
$ tftp localhost ## command: get test
 
</source>
 
</source>
  
 
check that the file test is received locally.
 
check that the file test is received locally.
 +
 +
On bren try to get the test file as well. If you receive it everything is working correct.

Revision as of 07:41, 29 September 2010

To enable tftp on your Centos server perform the following:

$ yum install tftp*
$ chmod 777 /tftpboot
$ vi /etc/xinetd.d/tftp ## Change disable = yes to disable = no
$ restorecon -r /tftpboot
$ system-config-securitylevel-tui ## add tftp:udp in the customize menu for other ports
$ service network restart
$ echo "test">/tftpboot/test
$ tftp localhost ## command: get test

check that the file test is received locally.

On bren try to get the test file as well. If you receive it everything is working correct.