Difference between revisions of "SchoolOnffLine: Instalasi DHCP Server untuk pemberian IP address automatis"

From OnnoWiki
Jump to navigation Jump to search
Line 14: Line 14:
 
  max-lease-time      172800; # 48 jam
 
  max-lease-time      172800; # 48 jam
 
  option domain-name "sekolah.sch.id"
 
  option domain-name "sekolah.sch.id"
  option domain-name-servers 203.34.118.10, 203.34.118.12, 208.67.222.222, 208.67.220.220;
+
  option domain-name-servers 192.168.0.254, 203.34.118.10, 203.34.118.12, 208.67.222.222, 208.67.220.220;
  
 
  subnet 192.168.0.0 netmask 255.255.255.0 {
 
  subnet 192.168.0.0 netmask 255.255.255.0 {
 
         range 192.168.0.30 192.168.0.70;
 
         range 192.168.0.30 192.168.0.70;
         options routers 192.168.0.1;
+
         option routers 192.168.0.1;
 
         }
 
         }
  

Revision as of 07:32, 2 August 2009

Instalasi DHCP Server

# apt-get install dhcp3-server

Konfigurasi dhcpd.conf

# vi /etc/dhcp3/dhcpd.conf

Isinya kira-kira sebagai berikut

ddns-update-style none;
authoritative;
default-lease-time   86400; # 24 jam
max-lease-time      172800; # 48 jam
option domain-name "sekolah.sch.id"
option domain-name-servers 192.168.0.254, 203.34.118.10, 203.34.118.12, 208.67.222.222, 208.67.220.220;
subnet 192.168.0.0 netmask 255.255.255.0 {
       range 192.168.0.30 192.168.0.70;
       option routers 192.168.0.1;
       }

Restart DHCP Server

# /etc/init.d/dhcp3-server restart



Pranala Menarik