Track. Automate. Configure.

Home About Features Community Develop
Download this project as a tar.gz file

DHCP options 'next-server' and 'filename'


11-06-2010 05:06:31

Hi folks,

I'm currently trying to move our existing dhcpd.conf to ONA (9.9.15), but I have lots of PXE net-boot boxes that require entries like this:

host hostname {
hardware ethernet ...;
fixed-address ip;
filename "pxelinux.0";
option root-path "nfsserver-ip:/directory";
option pxelinux.configfile "pxelinux.cfg/myconfig";

Unfortunately I have no idea how to get next-server.
Maybe filename?



11-06-2010 09:40:00

Great observation. Here is my suggestion to getting what you need accomplished.

Wherever you use filename, as you have suggested, you can use the bootfile-name option.

next-server can be dealt with as follows. first, if your tftp server happens to be your dhcp server then you dont even need to specify it as it defaults to the same IP the DHCP lease came from. Obviously this is not always the case. So you can then use the tftp-server-name (option 66) option to specify something else.

One thing to mention of course is that not all DHCP clients are equal. It is entirely possible that there are some clients that dont like bootfile-name or tftp-server-name options. I will say however that I have ran with this set up for many years in many large and small environments dealing with a bunch of clients and boot types. I have not yet ran into a situation where I needed to use filename or next-server options. PXE itself I know works fine with how ONA does it.

Soo... I'll never say never but you should be fine with bootfile-name and tftp-server-name options.

Hope that helps.. let me know if it doesnt work for you.