The dhcpd.conf page, for configuring the DHCP server.



The /etc/dhcpd.conf file holds the configuration that the dhcpd (dynamic host configuration protocol daemon) needs to operate.

After searching for a while I found that this thingie is much better than any dhcp server I saw in adsl routers or access points.
It is configured fast enough and produces results with no bugs (for my level of operation at least).
In my configuration file I assign gateway and dns addresses because the gateway is other than the dhcp server.
Also, I have a general pool for wireless and plugged guests as well as a more stricktly configured set of addresses for the regular hosts in the network (desktops, laptops, adsl routers, access points, network printers).

The hardware ethernet numbers are the mac addresses (layer 2 network configuration).
In Windows, mac addresses are shown in the status of any wireless or local ethernet network.
In Linux, a simple ifconfig (terminal command) will show the needed information.

/etc/dchpd.conf sample
ddns-update-style none;
option domain-name-servers 192.168.0.168;
default-lease-time 86400;
max-lease-time 604800;
authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.70 192.168.0.99;
        option subnet-mask 255.255.255.0;
        option broadcast-address 192.168.0.255;
        option routers 192.168.0.168;
}

host athlon {
hardware ethernet 00:xx:A7:0E:ww:45;
fixed-address 192.168.0.1;
}

host pentium {
hardware ethernet 00:80:gg:14:gg:98;
fixed-address 192.168.0.2;
}

host acer {
hardware ethernet 00:hh:E7:hh:50:1A;
fixed-address 192.168.0.50;
}