1. Install the software

    Install the dhcp-server package using package manager of your Linux distribution.

  2. Configure the server

    Configure the DHCP server by editing configuration file /etc/dhcpd.conf. See the example below:
    ddns-update-style none;
    subnet 192.168.75.0 netmask 255.255.255.0 {
        option routers 192.168.75.1;
        option subnet-mask 255.255.255.0;
        option domain-name-servers 192.168.75.1;
        range 192.168.75.10 192.168.75.100;
        default-lease-time 21600;
        max-lease-time 43200;
    }
    


  3. Restart the DHCP server

    Restart the DHCP server to apply your changes by commands
    systemctl restart dhcp-server
    or
    service dhcp-server restart
    or other, depending on your Linux version.
    DHCP server is ready.