Saturday, September 22, 2012

Linux DHCP Server

  • Install DHCP
#yum -y install dhcp
  • Configuring DHCP
open File /etc/dhcpd.conf dan ubah seperti di bawah
ddns-update-style interim;

ignore client-updates;
#Determine the network and mask that will be given IP dhcp
subnet 192.168.0.0 netmask 255.255.255.0 {
# — specify the address of the router
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
#Option for the domain (if any, if not given a "#")
option nis-domain “domain.org”;
option domain-name “domain.org”;
#Option to specify the dns server to use (if more than one then add by using the "," as separator example:192.168.1.1,192.168.1.2)
option domain-name-servers 192.168.1.1;
option time-offset -18000; # Eastern Standard Time
# tetukan rage Ip utuk DHCP
range dynamic-bootp 192.168.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
}
}

1 comment:

  1. Wow.. Pengen cepet2 belajar linux biar ngerti.. :D

    ReplyDelete

Related Posts Plugin for WordPress, Blogger... .