en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol
INSTALLATION
$ apt-cache show isc-dhcp-server
# apt-get install isc-dhcp-server
# man dhcpd
# man dhcpd.conf
CONFIGURATION
# ifconfig; ip a
# service isc-dhcp-server start | stop | restart
# systemctl start isc-dhcp-server
# systemctl enable isc-dhcp-server
# ufw allow 67/udp
# ufw reload
# vim /etc/dhcp/dhcpd.conf
> option broadcast-address 192.168.0.255;
> option domain-name "linux.local";
> default-lease-time 3600;
> max-lease-time 7200;
> authoritative;
>
> subnet 192.168.0.0 netmask 255.255.255.0 {
> option routers 192.168.0.1;
> option subnet-mask 255.255.255.0;
> option domain-search "linux.local";
> option domain-name-servers 8.8.8.8, 8.8.4.4;
> range 192.168.0.10 192.168.0.100;
> range 192.168.0.150 192.168.0.200;
> }
SOURCES
• isc.org/downloads/dhcp/
• help.ubuntu.com/community/isc-dhcp-server
• tools.ietf.org/html/rfc1531
• en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol