tftp 常見的錯誤訊息
- PXE-E3B-TFTP Error file not found
最近新設定一台 PXE 但使用 PXE 開機卻出現下面的錯誤訊息!PXE-T01: file not found PXE-E3B-TFTP Error file not found PXE-M0F exiting Intel boot agent
使用 tcpdump 則是出現這樣的訊息
IP tftp: 28 RRQ "/pxelinux.0" octet tsize 0
也確定 tftp 服務是開啟的
# netstat -an | fgrep -w 69 udp 0 0 0.0.0.0:69 0.0.0.0:*
查了半天才看出原來 /etc/xinetd.d/tftp 和 /etc/dhcpd.conf 目錄設定錯誤
#vi /etc/xinetd.d/tftp server_args = -s /tftpboot # vi /etc/dhcpd.conf filename “linux-install/pxelinux.0″
dhcpd.conf 所指定的檔案目錄是以 tftp 為基準點,所以寫成 “filename “linux-install/pxelinux.0″;" 是指向 “/tftpboot/linux-install/pxelinux.0″;"
- PXE-E32: TFTP Open timeout
另外一個常見的錯誤是PXE-E32: TFTP Open timeout
可能的問題也跟前面一樣,需要在檢查一下你的 /etc/xinetd.d/tftp 和 /etc/dhcpd.conf 目錄設定.
可能檢查了半天還是不知哪裡出現問題,可在本機使用 tftp 指令來除錯
# tftp 172.16.0.2 tftp> help tftp-hpa 0.49 Commands may be abbreviated. Commands are: connect connect to remote tftp mode set file transfer mode put send file get receive file quit exit tftp verbose toggle verbose mode trace toggle packet tracing literal toggle literal mode, ignore ':' in file name status show current status binary set mode to octet ascii set mode to netascii rexmt set per-packet transmission timeout timeout set total retransmission timeout ? print help information help print help information
試試看檔案可不可接收或傳送,如果可以應該就沒有問題了.
tftp> get pxelinux.0 getting from 172.16.0.2:pxelinux.0 to pxelinux.0 [netascii] Received 27213 bytes in 0.0 seconds [31745124 bit/s] tftp>quit #