Set up Linux machine as dhcp server
From AcrodusWiki
This is a quick note on how to setup a linux machine to be a dhcp server. This is likely to be on the same machine configured as the router but does not have to be.
The package to install in dhcp-isc-server. Configuration can be found in /etc/dhcp/dhcpd.conf
Example below configured on home network however default examples are commented out in the conf file.
subnet 192.168.40.0 netmask 255.255.255.0 { option routers 192.168.40.1; option subnet-mask 255.255.255.0; option domain-name-servers 8.8.8.8; pool { range 192.168.40.2 192.168.40.253; } }
host samsung_tv { hardware ethernet 40:16:3b:37:bc:7a; fixed-address 192.168.40.3; }
host alex_laptop { hardware ethernet d4:d2:52:a9:70:d1; fixed-address 192.168.40.222; }