1. Install DHCP
root@debian:~# apt-get install dhcp3-server (jangan lupa masukkan dvd debian 1)
2. Konfigurasi DHCP
root@debian:~# nano /etc/dhcp/dhcpd.conf
# A slightly different configuration for an internal subnet
Subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.17
option domain-name-server tkj.com;
option domain-name "tkj.com";
option routers 192.168.1.254;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
}
kemudian tekan ctrl + O, enter (untuk menyimpan) dan tekan ctrl + X (untuk keluar)
root@debian:~# nano /etc/default/isc-dhcp-server
INTERFACES = "eth0" (di tambahkan eth0)
Kemudian tekan ctrl + O, enter (untuk menyimpan) dan tekan ctrl + X (untuk keluar)
Restart dhcp server
root@debian:~# service isc-dhcp-server restart