simple dhcp server untuk pemula

Februari 3rd, 2010

setelah beberapa lama menguji coba di dalam rumah sendiri inilah hasil dari dhcp server:

ddns-update-style interim;
ignore client-updates;

subnet 192.168.2.0 netmask 255.255.255.0 {       <—– ip addres yang saya buat untuk lan saya

# — default gateway
option routers 192.168.2.1; <—–gateway rumah saya
option subnet-mask 255.255.255.0;

option nis-domain “domain.org”;
option domain-name “domain.org”;
option domain-name-servers 192.168.1.1;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# — Selects point-to-point node (default is hybrid). Don’t change this unless
# — you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.2.2 192.168.2.10;  <—-range ip yang akan di berikan kepada client jika terjadi dhclient
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}

selamat mencoba