我刚刚在CentOS 6.6机器上安装了一个皮匠(带tftp / dhcp)服务器。 我configuration了tftp在xinetd下运行,conf文件如下所示:
service tftp { disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -B 1380 -v -s /var/lib/tftpboot per_source = 11 cps = 100 2 flags = IPv4 }
当其中一个客户端tftp机器(即将使用cobbler和kickstart安装)启动时,它将成功从dhcp服务器接收到一个IP地址,其范围正如在/etc/dhcp/dhcpd.conf tmp目录下的“range dynamic-bootp” /etc/dhcp/dhcpd.conf但是当它继续加载pxelinux.0映像的阶段时,它会挂起,然后用以下消息超时:
tftp://10.13.0.1/pxelinux.0........... Connection timed out (0x4c126035) Could not load tftp://10.13.0.1/pxelinux.0: Connection timed out (0x4c125035)
我采取的故障排除步骤
- validationiptables已停止。
- validation/ var / lib / tftpboot上的权限是755。
- validationSELINUX已禁用。
- 我跑了
tftp localhost,它连接成功,但是当我试图get file.txt我结束了相同的“连接超时”的错误。
编辑#1:
[root@centolel tftpboot]# netstat -apn|grep -w 69 udp 0 0 0.0.0.0:69 0.0.0.0:* 13097/xinetd
我忘了提到什么在日志中..这是从运行tftp localhost :
Jun 30 11:44:02 localhost xinetd[13097]: START: tftp pid=24348 from=127.0.0.1 Jun 30 11:44:02 localhost xinetd[13097]: EXIT: tftp status=1 pid=24348 duration=0(sec) Jun 30 11:44:07 localhost xinetd[13097]: START: tftp pid=24383 from=127.0.0.1 Jun 30 11:44:07 localhost xinetd[13097]: EXIT: tftp status=1 pid=24383 duration=0(sec)
而从远程的tftp机器:
Jun 30 11:45:56 localhost xinetd[13097]: START: tftp pid=25099 from=10.13.0.101 Jun 30 11:45:56 localhost xinetd[13097]: EXIT: tftp status=1 pid=25099 duration=0(sec) Jun 30 11:46:00 localhost xinetd[13097]: START: tftp pid=25112 from=10.13.0.101 Jun 30 11:46:00 localhost xinetd[13097]: EXIT: tftp status=1 pid=25112 duration=0(sec)
任何想法可能是超时的原因或如何解决?
守护进程在启动时意外死亡( status=1 )。
它看起来像tftpd的参数,你有不适合你当前的tftp版本。 从shell运行守护进程已经将这个server_args是server_args ,你已经使server_args参数对当前的守护进程有意义,现在一切都好了。