Product SiteDocumentation Site

10.2. DHCP Server Configuration

Procedure 10.1. Installing and configuring dhcpd
  1. Install the dhcp server package.
    # dnf install dhcp
  2. Create a simple configuration for the dhcp server at /etc/dhcp/dhcpd.conf
    subnet netmask {
    default-lease-time 600;
    max-lease-time 7200;
    ddns-update-style none;
    option domain-name-servers;
    option routers;
  3. Test your configuration and address any problems you discover.
    systemctl start dhcpd
    journalctl --unit dhcpd --since -2m --follow
  4. Add entries to point clients to their bootloader and the server that provides it to your subnet configuration in /etc/dhcp/dhcpd.conf. Because DHCP clients provide the server with identifying information along with their address request, BIOS clients and UEFI clients can each be directed to the correct bootloader.
    # refer to RFC4758 for possible arch option values
    option arch code 93 = unsigned integer 16;
    subnet netmask {
    if option arch = 00:07 {
    filename "uefi/shim.efi";
    } else {
    filename "pxelinux.0";
  5. Restart the dhcp service to check the configuration and make changes as needed.
    systemctl restart dhcpd
    journalctl --unit dhcpd --since -2m --follow