Linux
tftp setting and test
jackyjung
2012. 1. 17. 11:35
root@jcjung:~/work# ps -ef | grep tftp
root 2986 1 0 11:06 ? 00:00:00 /usr/sbin/in.tftpd --listen --user tftp --address 0.0.0.0:69 --secure /var/lib/tftpboot
root 3066 1525 0 11:21 pts/2 00:00:00 grep --color=auto tftp
/var/lib/tftpboot : download directory
make test file
root@jcjung:~/work# cat > /var/lib/tftpboot/hello.txt
hello world!
root@jcjung:~/work#
root@jcjung:~/work# cat /var/lib/tftpboot/hello.txt
hello world!
root@jcjung:~/work# ll /var/lib/tftpboot/hello.txt
-rw-r--r-- 1 root root 13 2012-01-17 11:23 /var/lib/tftpboot/hello.txt
set IP of eth1
root@jcjung:~/work# ifconfig eth1 192.168.10.10 up
root@jcjung:~/work# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:fb:e8:6f
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fefb:e86f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5781 errors:0 dropped:0 overruns:0 frame:0
TX packets:3824 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4950678 (4.9 MB) TX bytes:701903 (701.9 KB)
eth1 Link encap:Ethernet HWaddr 08:00:27:5d:2c:a6
inet addr:192.168.10.10 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe5d:2ca6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4089 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:541354 (541.3 KB) TX bytes:5809 (5.8 KB)