Thursday, July 1, 2010

Installing and configuring TFTP server in Linux (RHEL5 & Centos)


1. Install tftp server using the following command
yum -y install tftp-server
2. Open  /etc/xinetd.d/tftp file using any text editor and make 
disable                 = no
3. Start xinetd server (because tftpd is sub service of that xinetd)
service xinetd start - to start XINETD
4.  Check whether the tftp port 69 using the following command
netstat -nulp | grep 69
5. If selinux is not disabled by default, use the following command to make it disable for the tftpd service
setsebool -P tftpd_disable_trans=1 - disables SELinux for TFTPD
service xinetd restart
6. Installation of tftp server create a directory called /tftpboot where files are stored (tftp root). we must create a
blank file using touch and change permission to 666 using chmod to make it writable
touch r1-config
chmod 666 r1-config
7. Now from cisco router we can use the copy command
R1#copy run tftp://192.168.1.20/r1-config

No comments: