UEFI & dhcpd.conf

Hello and welcome to our community!

The sample conf wiki page is super old left-over which is not much relevant anymore. Our installer will actually set one up which works with UEFI if you tell it to do so (grep for dhcp options). I am going to edit this wiki and replace it with link to our documentation. FYI Here is mine from Foreman version 1.17:

omapi-port 7911;
default-lease-time 43200;
max-lease-time 86400;
ddns-update-style none;
option domain-name "nat.lan";
option domain-name-servers 192.168.199.3;
option ntp-servers none;
allow booting;
allow bootp;
option fqdn.no-client-update    on;  # set the "O" and "S" flag bits
option fqdn.rcode2            255;
option pxegrub code 150 = text ;
next-server 192.168.199.3;
option architecture code 93 = unsigned integer 16 ;
if option architecture = 00:06 {
  filename "grub2/shim.efi";
} elsif option architecture = 00:07 {
  filename "grub2/shim.efi";
} elsif option architecture = 00:09 {
  filename "grub2/shim.efi";
} else {
  filename "pxelinux.0";
}
log-facility local7;
include "/etc/dhcp/dhcpd.hosts";
subnet 192.168.199.0 netmask 255.255.255.0 {
  pool
  {
    range 192.168.199.10 192.168.199.109;
  }
  option subnet-mask 255.255.255.0;
  option routers 192.168.199.1;
}

Done, it is really old. Use the installer.

We are actually a project, but thanks :slight_smile:

1 Like