testing bootp

845 views
Skip to first unread message

Michael Pope

unread,
Nov 15, 2012, 2:56:30 AM11/15/12
to mlu...@googlegroups.com
I've just brought a CuBox and I'm trying to get it to boot over PXE, I'm
getting closer, but where I'm becoming stuck is how it is asking for an
IP. It's using bootp, which as I understand is a slimmed down version of
dhcp.

I'm running isc-dhcpd on my Ubuntu 12.04 box in the next room, here is
the config for the dhcp server (it's messy I know)

# Internal subnet
subnet 10.1.1.0 netmask 255.255.255.0 {
allow booting;
allow bootp;
range 10.1.1.100 10.1.1.200;
option domain-name-servers 10.1.1.1;
option domain-name "lan";
option routers 10.1.1.1;
option broadcast-address 10.1.1.255;
default-lease-time 72000;
max-lease-time 72000;
}

ddns-update-style none;

# For Mythserver (PXE Boot lines)
authoritative;
option domain-name-servers 10.1.1.1;
option broadcast-address 10.1.1.255;
option routers 10.1.1.1;
option root-path "/opt/ltsp/i386";
next-server 10.1.1.10;

if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
filename "/ltsp/i386/pxelinux.0";
} else {
filename "/ltsp/i386/nbi.img";
}

I've added the allow booting & allow bootp today in the hope to satisfy
bootp broadcast requests from my CuBox but it doesn't seem to be
working. I've restarted my dhcpd server.

I've got a notebook on the same network running Linux Mint 13, is there
a command which I could use to test if my dhcp server is listening to
bootp requests?

from
Michael

Holden Hao

unread,
Nov 15, 2012, 3:17:16 AM11/15/12
to mlu...@googlegroups.com
# For Mythserver (PXE Boot lines)
authoritative;
option domain-name-servers 10.1.1.1;
option broadcast-address 10.1.1.255;
option routers 10.1.1.1;
option root-path "/opt/ltsp/i386";
next-server 10.1.1.10;

if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
    filename "/ltsp/i386/pxelinux.0";
} else {
    filename "/ltsp/i386/nbi.img";
}

Check your path.  Your root-path and filename path may be wrong.  So the client can not find pxelinux.0.

You can test your tftp server by using a tftp client from a desktop.

tftp TFTPServerIP
> get pxelinux.0

If you have an error, it means it can not find the file.




Holden 

Michael Pope

unread,
Nov 20, 2012, 7:26:08 AM11/20/12
to mlu...@googlegroups.com

On 11/15/2012 07:17 PM, Holden Hao wrote:

if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
    filename "/ltsp/i386/pxelinux.0";
} else {
    filename "/ltsp/i386/nbi.img";
}

Check your path.  Your root-path and filename path may be wrong.  So the client can not find pxelinux.0.

You can test your tftp server by using a tftp client from a desktop.

tftp TFTPServerIP
> get pxelinux.0

If you have an error, it means it can not find the file.

I get the file when I type this:

tftp> get /ltsp/i386/pxelinux.0
Received 26837 bytes in 0.0 seconds

Should I be changing the location so that it can download the pxelinux.0 file without a full path?

from
Mick
Reply all
Reply to author
Forward
0 new messages