Product SiteDocumentation Site

DHCP Configuration

Below is a sample DHCP configuration you can use:
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
# ******************************************************************

#
# generated from cobbler dhcp.conf template ($date)
#
# ******************************************************************

ddns-update-style interim;
update-static-leases on;

ignore client-updates;
use-host-decl-names on;
authorative;

local-address 2.2.2.1;

##
## Dynamic host magic
##
ddns-hostname = pick (option fqdn.hostname, option host-name,
                    concat ("dhcp-",
                    binary-to-ascii (10, 8, "-", leased-address));
option host-name = config-option server.ddns-hostname;

set vendorclass = option vendor-class-identifier;

subnet 2.2.2.0 netmask 255.255.255.0 {

    authoritative;

    ddns-domainname                 "contoso.com";

    option routers                  2.2.2.1;
    option subnet-mask              255.255.255.0;
    option domain-name              "contoso.com";
    option domain-name-servers      2.2.2.1;
    option netbios-name-servers     2.2.2.1;

    pool {
        range dynamic-bootp         2.2.2.10 2.2.2.250;
        default-lease-time 86400;
        max-lease-time 86400;
    }

    allow bootp;
    allow booting;
    default-lease-time      21600;
    max-lease-time          43200;
    next-server             2.2.2.1;
    filename                "/pxelinux.0";
}

zone contoso.com. {
    primary 127.0.0.1;
}
zone 2.2.2.in-addr.arpa. {
    primary 127.0.0.1;
}