Introduction
This page describes how Alexis Huxley installed and configured his DHCP server.
Procedure
- Install the packages required for the DNS server by running:
apt-get install isc-dhcp-server
- Edit /etc/dhcp/dhcpd.conf to contain something like:
ddns-update-style none; authoritative; update-static-leases on; log-facility local7; subnet 192.168.1.0 netmask 255.255.255.0 { option domain-name "pasta.net"; option domain-name-servers 192.168.1.3; option ntp-servers time.pasta.net; option routers 192.168.1.1; pool { range 192.168.1.101 192.168.1.120; deny unknown-clients; host linguine-wlan0 { hardware ethernet 00:16:e3:e0:ad:6d; fixed-address linguine.pasta.net; } host linguine-eth0 { hardware ethernet 00:1b:24:07:0c:f2; fixed-address linguine.pasta.net; } host halusky-eth0 { hardware ethernet dc:0e:a1:56:db:2e; fixed-address halusky.pasta.net; } host halusky-wlan0 { hardware ethernet 7c:e9:d3:25:d5:9b; fixed-address halusky.pasta.net; } } pool { range 192.168.1.121 192.168.1.140; allow unknown-clients; } }
- Reload the updated configuration file by running:
systemctl restart isc-dhcp-server
- Test!