弟目前想架一台PXE server,規格簡述如下:
Broadcom Corporation NetXtreme BCM5723(1 port): eth0 192.168.100.10
Intel Corporation 82580 Gigabit Network (4 ports): eth{1,4} 192.168.100.{1,4}
--------------------------------------------------------
isc-dhcp-server: 4.1.1-P1-15ubuntu9.3
iftpd-hpa: 5.0-21ubuntu2
syslinux: 2:4.02+dfsg-7ubuntu1
--------------------------------------------------------
1. /etc/default/isc-dhcp-server裡面定義listen interfaces:
- 代碼: 選擇全部
INTERFACES="eth0 eth1 eth2 eth3 eth4"
2. /etc/dhcp/dhcpd.conf裡:
- 代碼: 選擇全部
allow booting;
allow bootp;
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
subnet 192.168.100.0 netmask 255.255.255.0 {
range 192.168.100.11 192.168.100.40;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.100.255;
option routers 192.168.100.1;
next-server 192.168.100.1;
filename "/pxelinux.0";
}
3./etc/default/tftpd.hpa:
- 代碼: 選擇全部
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/home/maxsolar/data/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"
4. 把pxelinux.0丟到/home/maxsolar/data/tftpboot,也自己撰寫了一個default檔使之可以讀取vmlinuz以及initrd.img。
--------------------------------------------------------------------
確定所有daemon都有啟動之後,弟發現每次能夠成功用pxe進入開機畫面只有eth0,至於eth{1,4}都會卡在
- 代碼: 選擇全部
CLIENT MAC ADDR XX XX XX XX GUID YYYYYYYYYYYYYYYYYY
CLIENT IP 192.168.100.11 MASK 255.255.255.0 DHCP IP 192.168.100.1
GAETWAY IP 192.168.100.1
TFTP(卡了幾秒後,產生下面訊息)
PXE-E11 ARP timeout
PXE-M0F Exiting Intel Boot Agent
搜尋過外界關於pxe timeout的debug建議,看似都跟我的狀況不太吻合。然而eth{1,4}都可以正確發放IP,卻不能給出pxelinux.0,百思不得其解。希望各位先進能指點迷津,謝謝前輩!