DHCP-Option for FOG Server (https://fogproject.org)?


(fpausp) #1

I like to use FOG-Server https://fogproject.org/ to clone my clients etc… Nethserver acts as dhcp-server in the LAN.

I tried to use a custom-template:

  • create template folder
    mkdir /etc/e-smith/templates-custom/etc/dhcpd.conf

  • create template file
    nano /etc/e-smith/templates-custom/etc/dhcpd.conf/99fog

  • content of 99fog
    next-server 192.168.1.244;
    filename “linux/pxelinux.0”;

  • expand template
    expand-template /etc/dhcpd.conf

But it has not been working…

How must I configure NethServer to be able to use another server for PXE ?


(Markus Neuberger) #2

Hello @fausp,

NethServer uses dnsmasq as DNS/DHCP server so I think you have to custom-template /etc/dnsmasq.conf instead of /etc/dhcpd.conf.

https://www.tecmint.com/install-pxe-network-boot-server-in-centos-7/

https://wiki.ubuntuusers.de/PXE-Installation/#Dnsmasq (German)


(fpausp) #3

Hello Markus, please, forgive me my ignorance and thank you for the hint and links…

It works now with this content:

dhcp-boot=undionly.kpxe,192.168.xxx.xxx


(Markus Neuberger) #4

You’re welcome. Please mark the topic as solved as described here:

https://community.nethserver.org/t/howto-mark-a-topic-as-solved/1750