2010年9月6日 星期一

tftp usage

Linux Command (busybox)
# tftp -g -r filename 192.168.100.2

Examples from the internet:
Usage: tftp [OPTION]... HOST [PORT]

Transfers a file from/to a tftp server using "octet" mode.

Options:
-l FILE Local FILE.
-r FILE Remote FILE.
-g Get file.
-p Put file.


>> download a file from the tftp server
# tftp -g -r filename.txt 20.20.20.1

>> upload a file to the tftp server
# tftp -p -r filename 1.2.3.4
NOTE: don't add the path prefix on the filename, as
# tftp -p -r ./path/to/filename 1.2.3.4 ==> This case will due to TFTP access violation error

Windows embedded with tftp client
upload file
C:\>tftp -i 192.168.100.2 PUT UploadFile
download file
C:\>tftp -i 192.168.100.2 GET DownloadFile

We can also use Tftpd program, it also has the tftp client

tftp server (shareware)
TFTPD32
http://www.jounin.net/tftpd32.html

沒有留言: