做任何事情Google上搜先,发现大量的基于
Linux的TFTP文章没有任何价值,都是Copy来Copy去,算了还是自己找吧,Wiki可是个好东西,任何想要的东西基本上都能在Wiki上发现,查找好了要作的东西,直接动手了
1.
sudo apt-get install tftpd-hpa
2. 修改/etc/drfault/tftpd-hpa,改为以下方式:
#Defaults for tftpd-hpa
RUN_DAEMON="yes" #开始Daemon,standalone方式
OPTIONS="-l -s /var/lib/tftpboot" #默认TFTP
文件夹
3. netstat -a | grep tftp,你会看到
udp 0 0 *:tftp *:*
一切搞定,从Cisco上试试吧,TFTP就是这么简单。
Ubuntu 安裝 xinetd /tftp server
sudo apt-get install xinetd
[編輯] /etc/xinetd.d
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
$ sudo /etc/init.d/xinetd restart