hello list,
I am trying to setup a PXE boot server. Below are the details of the server:
OS : Fedora Core 5 32-bit
DHCP : dhcp 4.1
TFTP : tftp-hpa-5.0
Number of NIC : 2
eth0 : IP : 192.168.100.17, Subnet : 255.255.255.0, Gateway : 192.168.100.1
eth1 : IP : 192.168.1.1, Subnet : 255.255.255.0, Gateway : 192.168.1.1
Client:
OS : None, fresh machine
Number of NIC : 2 Intel Gigabit
eth0 of server is connected to primary NIC of the client via a switch
which is on the network range 192.168.100.x. I tried booting the
client using this interface but it was very flaky, client boots very
rarely. googling the reason I found out that it has something to do
with the switch (Netgear) I am using.
Then i connected eth1 of server (unused) with a cross over cable to
the client's secondary NIC. I did changed the boot order and DHCP
worked fine. But TFTP server is never able to transfer vmlinuz to the
client.
Below is my dhcpd.conf file
/etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.1.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.1.240 192.168.1.252;
default-lease-time 3600;
max-lease-time 4800;
option routers 192.168.1.1;
option domain-name-servers 192.168.100.13;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
allow booting;
allow bootp;
filename "pxelinux.0";
# filename "/pxelinux.0";
}
host server20 {
hardware ethernet 00:30:48:D3:D8:59;
fixed-address 192.168.1.240;
next-server 192.168.1.1;
}
TFTP conf:
/etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -v -v
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
this is what log file says:
Aug 5 18:40:24 server17 dhcpd: DHCPDISCOVER from 00:30:48:d3:d8:59 via eth1
Aug 5 18:40:24 server17 dhcpd: DHCPOFFER on 192.168.1.240 to
00:30:48:d3:d8:59 via eth1
Aug 5 18:40:26 server17 dhcpd: Dynamic and static leases present for
192.168.1.240.
Aug 5 18:40:26 server17 dhcpd: Remove host declaration server20 or
remove 192.168.1.240
Aug 5 18:40:26 server17 dhcpd: from the dynamic address pool for 192.168.1.0/24
Aug 5 18:40:26 server17 dhcpd: DHCPREQUEST for 192.168.1.240
(192.168.1.1) from 00:30:48:d3:d8:59 via eth1
Aug 5 18:40:26 server17 dhcpd: DHCPACK on 192.168.1.240 to
00:30:48:d3:d8:59 via eth1
Aug 5 13:10:26 server17 in.tftpd[5220]: RRQ from 192.168.1.240
filename /pxelinux.0
Aug 5 13:10:26 server17 in.tftpd[5220]: tftp: client does not accept options
Aug 5 13:10:26 server17 in.tftpd[5221]: RRQ from 192.168.1.240
filename /pxelinux.0
Aug 5 13:10:26 server17 in.tftpd[5222]: RRQ from 192.168.1.240
filename /pxelinux.cfg/01-00-30-48-d3-d8-59
Aug 5 13:10:26 server17 in.tftpd[5222]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:10:26 server17 in.tftpd[5223]: RRQ from 192.168.1.240
filename /pxelinux.cfg/C0A801F0
Aug 5 13:10:26 server17 in.tftpd[5223]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:10:26 server17 in.tftpd[5224]: RRQ from 192.168.1.240
filename /pxelinux.cfg/C0A801F
Aug 5 13:10:26 server17 in.tftpd[5225]: RRQ from 192.168.1.240
filename /pxelinux.cfg/C0A801
Aug 5 13:10:26 server17 in.tftpd[5226]: RRQ from 192.168.1.240
filename /pxelinux.cfg/C0A80
Aug 5 13:10:26 server17 in.tftpd[5227]: RRQ from 192.168.1.240
filename /pxelinux.cfg/C0A8
Aug 5 13:10:26 server17 in.tftpd[5228]: RRQ from 192.168.1.240
filename /pxelinux.cfg/C0A
Aug 5 13:10:26 server17 in.tftpd[5229]: RRQ from 192.168.1.240
filename /pxelinux.cfg/C0
Aug 5 13:10:26 server17 in.tftpd[5230]: RRQ from 192.168.1.240
filename /pxelinux.cfg/C
Aug 5 13:10:26 server17 in.tftpd[5231]: RRQ from 192.168.1.240
filename /pxelinux.cfg/default
Aug 5 13:10:44 server17 in.tftpd[5234]: RRQ from 192.168.1.240
filename /vmlinuz
Aug 5 13:10:47 server17 in.tftpd[5235]: RRQ from 192.168.1.240
filename /vmlinuz
Aug 5 13:10:54 server17 in.tftpd[5236]: RRQ from 192.168.1.240
filename /vmlinuz
Aug 5 13:11:07 server17 in.tftpd[5238]: RRQ from 192.168.1.240
filename /vmlinuz
Aug 5 13:11:33 server17 in.tftpd[5242]: RRQ from 192.168.1.240
filename /vmlinuz
Aug 5 13:12:26 server17 in.tftpd[5247]: RRQ from 192.168.1.240
filename /vmlinuz
Aug 5 13:14:11 server17 in.tftpd[5256]: RRQ from 192.168.1.240
filename /vmlinuz.cbt
Aug 5 13:14:11 server17 in.tftpd[5256]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:14:15 server17 in.tftpd[5257]: RRQ from 192.168.1.240
filename /vmlinuz.cbt
Aug 5 13:14:15 server17 in.tftpd[5257]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:14:21 server17 in.tftpd[5258]: RRQ from 192.168.1.240
filename /vmlinuz.cbt
Aug 5 13:14:21 server17 in.tftpd[5258]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:14:34 server17 in.tftpd[5261]: RRQ from 192.168.1.240
filename /vmlinuz.cbt
Aug 5 13:14:34 server17 in.tftpd[5261]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:15:01 server17 in.tftpd[5264]: RRQ from 192.168.1.240
filename /vmlinuz.cbt
Aug 5 13:15:01 server17 in.tftpd[5264]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:15:54 server17 in.tftpd[5268]: RRQ from 192.168.1.240
filename /vmlinuz.cbt
Aug 5 13:15:54 server17 in.tftpd[5268]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:17:39 server17 in.tftpd[5276]: RRQ from 192.168.1.240
filename /vmlinuz.0
Aug 5 13:17:39 server17 in.tftpd[5276]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:17:42 server17 in.tftpd[5278]: RRQ from 192.168.1.240
filename /vmlinuz.0
Aug 5 13:17:42 server17 in.tftpd[5278]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:17:49 server17 in.tftpd[5279]: RRQ from 192.168.1.240
filename /vmlinuz.0
Aug 5 13:17:49 server17 in.tftpd[5279]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:18:02 server17 in.tftpd[5281]: RRQ from 192.168.1.240
filename /vmlinuz.0
Aug 5 13:18:02 server17 in.tftpd[5281]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:18:28 server17 in.tftpd[5284]: RRQ from 192.168.1.240
filename /vmlinuz.0
Aug 5 13:18:28 server17 in.tftpd[5284]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:19:21 server17 in.tftpd[5288]: RRQ from 192.168.1.240
filename /vmlinuz.0
Aug 5 13:19:21 server17 in.tftpd[5288]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:21:07 server17 in.tftpd[5296]: RRQ from 192.168.1.240
filename /vmlinuz.com
Aug 5 13:21:07 server17 in.tftpd[5296]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:21:10 server17 in.tftpd[5297]: RRQ from 192.168.1.240
filename /vmlinuz.com
Aug 5 13:21:10 server17 in.tftpd[5297]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:21:16 server17 in.tftpd[5299]: RRQ from 192.168.1.240
filename /vmlinuz.com
Aug 5 13:21:16 server17 in.tftpd[5299]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:21:30 server17 in.tftpd[5301]: RRQ from 192.168.1.240
filename /vmlinuz.com
Aug 5 13:21:30 server17 in.tftpd[5301]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:21:56 server17 in.tftpd[5304]: RRQ from 192.168.1.240
filename /vmlinuz.com
Aug 5 13:21:56 server17 in.tftpd[5304]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:22:49 server17 in.tftpd[5308]: RRQ from 192.168.1.240
filename /vmlinuz.com
Aug 5 13:22:49 server17 in.tftpd[5308]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:24:34 server17 in.tftpd[5316]: RRQ from 192.168.1.240
filename /vmlinuz.c32
Aug 5 13:24:34 server17 in.tftpd[5316]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:24:38 server17 in.tftpd[5317]: RRQ from 192.168.1.240
filename /vmlinuz.c32
Aug 5 13:24:38 server17 in.tftpd[5317]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:24:44 server17 in.tftpd[5319]: RRQ from 192.168.1.240
filename /vmlinuz.c32
Aug 5 13:24:44 server17 in.tftpd[5319]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:24:57 server17 in.tftpd[5321]: RRQ from 192.168.1.240
filename /vmlinuz.c32
Aug 5 13:24:57 server17 in.tftpd[5321]: sending NAK (1, File not
found) to 192.168.1.240
Aug 5 13:25:24 server17 in.tftpd[5324]: RRQ from 192.168.1.240
filename /vmlinuz.c32
Aug 5 13:25:24 server17 in.tftpd[5324]: sending NAK (1, File not
found) to 192.168.1.240
Output on the client:
CLIENT IP: 192.168.1.240 MASK: 255.255.255.0 DHCP IP: 192.168.1.1
GATEWAY IP: 192.168.1.1
PXELINUX 3.10 2005-08-24 Copyright (C) 1994-2005 H. Peter Anavin
UNDI data segment at: 00093DC0
UNDI data segment size: 62C0
UNDI code segment at: 0009A080
UNDI data segment size: 3930
PXE entry point found (we hope) at 9A08:0106
My IP address seems to be C0A801F0 192.168.1.240
ip=192.168.1.240:192.168.1.1:192.168.1.1:255.255.255.0
TFTP prefix: /
Trying to load: pxelinux.cfg/01-00-30-48-d3-d8-59
Trying to load: pxelinux.cfg/C0A801F0
Trying to load: pxelinux.cfg/C0A801F
Trying to load: pxelinux.cfg/C0A801
Trying to load: pxelinux.cfg/C0A80
Trying to load: pxelinux.cfg/C0A8
Trying to load: pxelinux.cfg/C0A
Trying to load: pxelinux.cfg/C0
Trying to load: pxelinux.cfg/C
Trying to load: pxelinux.cfg/default
boot:
Could not find kernel image: vmlinuz
boot:
Let me know if some other information is required.
I did tried having filename "pxelinux.0"; set to TFTP root filename
"/pxelinux.0"; but this also did not worked.
Thanks
Sandeep