Tuesday, August 9, 2011

Setting DHCP Server di Debian dengan Client Xp

Setting DHCP Server di Debian dengan Client Xp
Yang kita butuhkan adalah paket Debian dengan file dhcp3-server, jika CD anda belum tersertakan file dhcp3-server anda bisa mendownloadnya disini http://debian.linux.org.tw/debian/pool/main/d/dhcp3/dhcp3-server_3.0.4-13_i386.deb

Diasumsikan eth1 adalah interface untuk kartu network pada server dengan IP 192.168.2.1, jangkauan alamat IP 192.168.2.100-192.168.2.200 subnet mask 255.255.255.0 server DNS 192.168.2.1 domain smkcikini-2009.sch.id

Langkah-langkahnya adalah :

1. setting IP server menjadi 192.168.2.1

#vi /etc/network/interfaces [enter]

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255

Kemudian aktifkan perubahan IP pada interface dengan perintah :
#/etc/init.d/networking restart [enter]
2. Langkah kedua ini saya asumsikan kita menginstal file dhcp server dari usb flashdisk.
#mkdir /tmp/flash
#mount /dev/sda /tmp/flash
#dpkg -i /tmp/flash/dhcp3-server_3.0.4-13_i386.deb
3. Edit file /etc/dhcp3/dhcpd.conf, tambahkan baris-baris berikut

# Sample /etc/dhcp3/dhcpd.conf
# (add your comments here)
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option routers 192.168.2.254;
option domain-name-servers 192.168.2.1;
option domain-name “smkcikini-2009.sch.id”;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.100 192.168.2.200;
}

Aktifkan perubahan dengan perintah
#/etc/init.d/dhcp3-server restart
4. pada client XP anda ubah properties TCP/IP ke automatically
Pilih Properties TCP/IP

Pilih Properties TCP/IP
Pilih Automatically

No comments:

Post a Comment