Difference between revisions of "DHCP Server: Install"

From OnnoWiki
Jump to navigation Jump to search
 
Line 8: Line 8:
  
 
==Konfigurasi==
 
==Konfigurasi==
 +
 +
Edit default
  
 
  nano /etc/default/isc-dhcp-server
 
  nano /etc/default/isc-dhcp-server
Line 14: Line 16:
  
  
 +
Edit konfigurasi DHCPD
  
 
  nano /etc/dhcp/dhcpd.conf
 
  nano /etc/dhcp/dhcpd.conf

Latest revision as of 17:25, 13 September 2021

Install

apt-get install isc-dhcp-server -y
systemctl start isc-dhcp-server
systemctl enable isc-dhcp-server


Konfigurasi

Edit default

nano /etc/default/isc-dhcp-server
INTERFACESv4="enp3s0"


Edit konfigurasi DHCPD

nano /etc/dhcp/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 10.254.239.0 netmask 255.255.255.224 {
  range 10.254.239.0 10.254.239.20;
  option routers 10.254.239.1;
  option domain-name-servers 10.254.239.1;
}