dhcpd

From Noah.org
Jump to: navigation, search

ISC DHCPD (also known as DHCPD3)

/etc/dhcp3/dhcpd.conf

default-lease-time 6000;
max-lease-time 7200;
log-facility local7;

subnet 10.10.10.0 netmask 255.255.255.0 {
        range 10.10.10.100 10.10.10.200;
        option domain-name-servers 10.10.10.53;
        option domain-name "example.com";
        option routers 10.10.10.1;
        default-lease-time 6000;
        max-lease-time 7200;
}

host kvm-1 {hardware ethernet 00:1e:68:1e:be:65;  fixed-address 10.10.10.11;}
host kvm-2 {hardware ethernet 00:16:36:6d:b8:4b;  fixed-address 10.10.10.12;}
host       git {hardware ethernet 00:30:48:7e:99:8e;  fixed-address 10.10.10.10;}