# sample /etc/dhcpd.conf for ALT Linux # assumptions: # - 192.168.0.0/24 (netmask 255.255.255.0) # - 192.168.0.1--192.168.0.127 are static client hosts # - 192.168.0.128--192.168.0.250 is dynamic lease range # - 192.168.0.251--192.168.0.254 are network servers and routers # - default gw at 192.168.0.254 # - DNS server at 192.168.0.253 # - NTP server at 192.168.0.252 # - WINS/samba at 192.168.0.251 # - DNS is working properly and reliably enough so we can # avoid IP address duplication and use hostnames # see dhcpd.conf(5) for more verbose explanation of options # don't bother DNS server with dynamic updates ddns-updates off; ddns-update-style none; # ...this one, BTW (substitute ISPs_DNS with appropriate IP) # up to three NS records separated by commas option domain-name-servers 192.168.0.253, ISPs_DNS; # time-related option time-offset 3; option ntp-servers 192.168.0.252; # give away addresses for a day, one per client default-lease-time 86400; one-lease-per-client on; # check whether IP being leased is already taken # NB: can be a problem for some DHCP clients ping-check on; # if there's a WINS server, put it here option netbios-name-servers 192.168.0.251; option netbios-node-type 8; # OK, now subnet. There can be more than one such section; # most things mentioned above can be configured on a per-subnet basis subnet 192.168.0.0 netmask 255.255.255.0 { option routers 192.168.0.254; option domain-name "domain.local"; # dynamic range pool { allow unknown clients; range 192.168.0.128 192.168.0.250; } # normal record; "while(1) { }" host host1.domain.local { hardware ethernet 00:22:22:22:22:22; fixed-address host1.domain.local; } # IP-bound record -- better don't use, get yourself proper resolving host host2.domain.local { hardware ethernet 00:33:33:33:33:33; fixed-address 192.168.0.2; } }