tftp在put上传的时候显示File not found

时间:2024-03-24 16:03:19

1.  Error code 0: Permission denied

主目录没有写权限, 可以 chmod  0777  /var/lib/tftpboot


2.Error code 1: File not found

在/etc/xinetd.d/tftp配置文件中,server_args后加上 -c 选项,方可上传

[plain] view plain copy
  1. service tftp  
  2. {  
  3.     socket_type     = dgram  
  4.     protocol        = udp  
  5.     wait            = yes     
  6.     user            = root    
  7.     server          = /usr/sbin/in.tftpd  
  8.     server_args     = -s /var/lib/tftpboot -c  
  9.     disable         = no      
  10.     per_source      = 11      
  11.     cps             = 100 2   
  12.     flags           = IPv4    
  13. }  

3. Transfer timed out.

如果第1,2条都没有问题,第3条可能是IPv6的原因,例如 在命令行下输入

# tftp localhost 



系统可能使用的是IPv6的 ::1 地址,如下WireShark截图:

tftp在put上传的时候显示File not found

如果使用 # tftp 127.0.0.1  IPv4环回地址应该是没有问题的。

系统可能使用的是IPv6的 ::1 地址,如下WireShark截图:

tftp在put上传的时候显示File not found

如果使用 # tftp 127.0.0.1  IPv4环回地址应该是没有问题的。