Raspbian: install DHCP server
Revision as of 18:46, 18 October 2018 by Onnowpurbo (talk | contribs)
Instalasi
sudo su apt update apt install isc-dhcp-server
Edit default
vi /etc/default/isc-dhcp-server
INTERFACESv4="eth0 wlan0"
Konfigurasi
vi /etc/dhcp/dhcpd.conf
Parameter
authoritative; # A slightly different configuration for an internal subnet. subnet 192.168.11.0 netmask 255.255.255.0 { range 192.168.11.100 192.168.11.200; option domain-name-servers 192.168.11.10, 192.168.11.10; option domain-name "sekolah.sch.id"; option routers 192.168.11.10; option broadcast-address 192.168.11.255; default-lease-time 600; max-lease-time 7200; }
# A slightly different configuration for an internal subnet. subnet 192.168.4.0 netmask 255.255.255.0 { range 192.168.4.100 192.168.4.200; option domain-name-servers 192.168.4.10, 192.168.4.10; option domain-name "sekolah.sch.id"; option routers 192.168.4.10; option broadcast-address 192.168.4.255; default-lease-time 600; max-lease-time 7200; }