Kamis, 06 Oktober 2011

DHCP server DEBIAN 5

1. Instal dhcp3-server
# apt-get install dhcp3-server
2. Edit file dhcpd.conf pada direktori /etc/dhcp3/ dengan cara ketik :
# vim /etc/dhcp3/dhcpd.conf
# A slightly different configuration for an internal subnet.
subnet 10.5.0.0 netmask 255.255.255.224 {
range 10.5.0.20 10.5.0.30;
option domain-name-servers 118.98.223.10, 118.98.166.11;
option domain-name "smkn1maumere.net";
option routers 10.5.0.1;
option broadcast-address 10.5.0.31;
default-lease-time 600;
max-lease-time 7200;

3. Restart dhcp3-server dengan cara :
# /etc/init.d/dhcp3-server restart

4. Akan tampil pesan seperti berikut ini.
Stopping DHCP server: dhcpd3.
Starting DHCP server: dhcpd3.

5. Setting IP address di client secara dinamis atau otomatis ( automatically)