Setting ISC DHCP Server Ubuntu

Kamis, 01 Maret 2012


Rubah File /etc/default/isc-dhcp-server seperti kira-kira dibawah ini :
_______________________________________________
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-server by the maintainer scripts
# This is a POSIX shell fragment
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth0"
________________________________________________

Kemudian File di /etc/dhcp/dhcpd.conf sebagai berikut :
________________________________________________

#
# Sample configuration file for ISC dhcpd for Debian
#
ddns-update-style none;
log-facility local7;
# A slightly different configuration for an internal subnet.
subnet 192.168.100.0 netmask 255.255.255.0 {
  range 192.168.100.251 192.168.100.254;
  option domain-name-servers 192.168.100.6;
  option domain-name "sman1tumpang.sch.id";
  option routers 192.168.100.6;
  option broadcast-address 192.168.100.6;
  default-lease-time 600;
  max-lease-time 7200;
}
______________________________________________

Jalankan service daemonnya :
_________________________________

sudo /etc/init.d/isc-dhcp-server restart
_________________________________

Check dengan client Automatically DHCP......

0 komentar:

Posting Komentar