Difference between revisions of "Instalasi DHCP Server"

From OnnoWiki
Jump to navigation Jump to search
Line 25: Line 25:
 
  option domain-name "warnet.net"
 
  option domain-name "warnet.net"
 
  option domain-name-servers 202.134.2.5, 203.130.196.5;  
 
  option domain-name-servers 202.134.2.5, 203.130.196.5;  
 +
 +
atau menggunakan OpenDNS'
 +
 +
option domain-name-servers 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 {

Revision as of 06:29, 16 March 2008

DHCP Server berfungsi untuk memberikan IP address secara automatis ke mesin-mesin di Jaringan LAN. Tentunya mesin di LAN tersebut harus di set agar IP address automatic.


Instalasi DHCP Server di Ubuntu

# apt-get install dhcp3-server


Dalam mengkonfigurasi DHCP Server, kita biasanya membutuhkan informasi

  • DNS Server, misalnya, 202.134.2.5, 203.130.196.5
  • Gateway / router, misalnya, 192.168.0.1
  • Range alokasi IP address, misalnya, 192.168.0.100 s/d 192.168.0.200
  • subnet, misalnya, 192.168.0.0
  • netmask, misalnya, 255.255.255.0


Format Konfigurasi dhcpd.conf

# vi /etc/dhcp3/dhcpd.conf

Isinya kira-kira sebagai berikut

option domain-name "warnet.net"
option domain-name-servers 202.134.2.5, 203.130.196.5; 

atau menggunakan OpenDNS'

option domain-name-servers 208.67.222.222, 208.67.220.220;
subnet 192.168.0.0 netmask 255.255.255.0 {
       range 192.168.0.100 192.168.0.200
       options routers 192.168.0.1;
       }


Restart DHCP Server

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


Pranala Menarik