Pejman Moghadam / General

ISC DHCP server - config example

Public domain


Dynamic Release: /etc/dhcpd.conf

ddns-update-style none;
subnet 192.168.1.0 netmask 255.255.255.0 {
  option routers              192.168.1.1;
  option subnet-mask          255.255.255.0;
  option domain-name-servers  4.2.2.4;
  default-lease-time 300;
  max-lease-time 3600;
  range 192.168.1.100 192.168.1.200;
}

Static and Dynamic Release: /etc/dhcpd.conf

ddns-update-style none;
subnet 192.168.1.0 netmask 255.255.255.0 {
  option routers                192.168.1.1;
  option subnet-mask            255.255.255.0;
  option domain-name-servers    8.8.8.8, 8.8.4.4;
  range              192.168.1.100 192.168.1.200;

  host storage {
    hardware ethernet 00:50:BF:96:A5:83;
    fixed-address 192.168.1.10;
  }

  host sysop {
    hardware ethernet 00:04:E2:D1:51:AA;
    fixed-address 192.168.1.11;
  }
}

BY: Pejman Moghadam
TAG: dhcpd
DATE: 2008-02-14 14:37:04


Pejman Moghadam / General [ TXT ]