Usage of TFTP server to transfer files
To Download any file from TFTP server.
use this command:
#tftp -g -r <filename> <ip-addr>
To push/upload anyfile from device to host:
use this command on device
#tftp -p -r <filename> <ip-addr>
ACCESS VIOLATION ERROR:
when we get error like this on some device while pushing file to host.We need to create a file with the same name of file we want to transfer.Use touch command to create files
$cd /tftpboot
$touch a.out
$chmod 777 a.out
Now at device side transfer the file using tftp
#tftp -p -r a.out <ip-addr>
Remark: Download: tftp -g -r only works with tftpd server and downloads from configured source location at /etc/xinetd.d/tftp e.g server_args = -s /tftpboot
Hi Tirumal, you are absolutly right. I have already mentioned steps for how to set up tftp server on host machine. Check it out https://rathodpratik.wordpress.com/2012/11/15/tftp-server-setup/
thanks much Pratik..
Hi to all,…
i did like this.
1) I have installed xined on my host machine.
2) i have created tftp file under /etc/xinetd.d.
3) i have set flags like this
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = yes
}
and i have created /tftpboot dir.and i have created a file on this directory.
i want to transfer a file to mini2440 .on host machine i am giving commond like this
$tftp 192.168.1.230
tftp> put 1.txt(after enteing this command)
after one minute it is giving as “TIMED OUT”
please give me instructons How to solve this problem