konfigurasi DHCPD.conf pada linux fedora

Dalam tulisan ini akan dibahas mengenai cara setting dhcp server di fedora linux 10.

Berikut yang akan dibahas dalam tulisan ini
1. Instalasi DHCP
2. Konfigurasi DHCP
3. Cek konfigurasi DHCP
4. Menjalankan DHCP

1. Intalasi DHCP
Untuk melakukan intalasi anda harus mempunyai akses sebagai root, berikut cara instalasi dhcp server dengan YUM
[ // <![CDATA[
var prefix = ‘ma’ + ‘il’ + ‘to’;
var path = ‘hr’ + ‘ef’ + ‘=’;
var addy47161 = ‘root’ + ‘@’;
addy47161 = addy47161 + ‘bayusenoadji’ + ‘.’ + ‘com’;
document.write( ‘‘ );
document.write( addy47161 );
document.write( ” );
//\n
// –>
// ]]>
root@bayusenoadji.com // <![CDATA[
document.write( ” );
// ]]>This e-mail address is being protected from spambots. You need JavaScript enabled to view it // <![CDATA[
document.write( ” );
// ]]>
~]# yum install dhcp
Setelah intalasi selesai kita bisa cek apakah dhcp sudah terinstall atau belum dengan Command Line sbb
[ // <![CDATA[
var prefix = ‘ma’ + ‘il’ + ‘to’;
var path = ‘hr’ + ‘ef’ + ‘=’;
var addy47161 = ‘root’ + ‘@’;
addy47161 = addy47161 + ‘bayusenoadji’ + ‘.’ + ‘com’;
document.write( ‘‘ );
document.write( addy47161 );
document.write( ” );
//\n
// –>
// ]]>
root@bayusenoadji.com // <![CDATA[
document.write( ” );
// ]]>This e-mail address is being protected from spambots. You need JavaScript enabled to view it // <![CDATA[
document.write( ” );
// ]]>
~]# yum list dhcp
Loaded plugins: refresh-packagekit
Installed Packages
dhcp.i386                                             12:4.0.0-33.fc10                                              installed

2. Konfigurasi DHCP
File konfigurasi dhcp ada di /etc/dhcpd.conf
Edit file dhcpd.conf dan masukkan konfigurasi sbb
# Start of Configuration
option domain-name “bayu.local”; # Isi sesuai dengan domain anda
option domain-name-servers 202.123.22.155; # Isi dengan dns server yang anda pakai

default-lease-time 600;
max-lease-time 7200;

#Konfigurasi Range IP yang akan diberikan di network
subnet 172.16.5.0 netmask 255.255.255.0 {
range 172.16.5.241 172.16.5.250;
option domain-name-servers 202.123.22.155;
option domain-name “nmx-sby.local”;
option routers 172.16.5.225;
option broadcast-address 172.16.5.210;
default-lease-time 600;
max-lease-time 7200;
}

#Konfigurasi untuk fix address berdasarkan mac Address
host komputerku {
hardware ethernet 00:11:D8:B8:1D:0F;
fixed-address 172.16.5.149;
}

3. Cek konfigurasi DHCP
Setelah konfigurasi selesai check konfigurasi dengan Command sbb
[ // <![CDATA[
var prefix = ‘ma’ + ‘il’ + ‘to’;
var path = ‘hr’ + ‘ef’ + ‘=’;
var addy47161 = ‘root’ + ‘@’;
addy47161 = addy47161 + ‘bayusenoadji’ + ‘.’ + ‘com’;
document.write( ‘‘ );
document.write( addy47161 );
document.write( ” );
//\n
// –>
// ]]>
root@bayusenoadji.com // <![CDATA[
document.write( ” );
// ]]>This e-mail address is being protected from spambots. You need JavaScript enabled to view it // <![CDATA[
document.write( ” );
// ]]>
~]# /etc/init.d/dhcpd configtest
Syntax: OK

Kalo muncul syntax ok berarti file konfigurasi sudah benar

4. Menjalankan DHCP Server
Untuk menjakan dhcp server ketikkan command sbb :
[ // <![CDATA[
var prefix = ‘ma’ + ‘il’ + ‘to’;
var path = ‘hr’ + ‘ef’ + ‘=’;
var addy47161 = ‘root’ + ‘@’;
addy47161 = addy47161 + ‘bayusenoadji’ + ‘.’ + ‘com’;
document.write( ‘‘ );
document.write( addy47161 );
document.write( ” );
//\n
// –>
// ]]>
root@bayusenoadji.com // <![CDATA[
document.write( ” );
// ]]>This e-mail address is being protected from spambots. You need JavaScript enabled to view it // <![CDATA[
document.write( ” );
// ]]>
~]/etc/init.d/dhcpd start

Dan untuk menjalankan dhcp server saat server di restart ketiikan Command line sbb:

[ // <![CDATA[
var prefix = ‘ma’ + ‘il’ + ‘to’;
var path = ‘hr’ + ‘ef’ + ‘=’;
var addy47161 = ‘root’ + ‘@’;
addy47161 = addy47161 + ‘bayusenoadji’ + ‘.’ + ‘com’;
document.write( ‘‘ );
document.write( addy47161 );
document.write( ” );
//\n
// –>
// ]]>
root@bayusenoadji.com // <![CDATA[
document.write( ” );
// ]]>This e-mail address is being protected from spambots. You need JavaScript enabled to view it // <![CDATA[
document.write( ” );
// ]]>
~]ntsysv

akan muncul suatu dialog yang berisi service-service yang tersedia di server anda , setalah dialog muncul pilih dhcpd lalu tekan OK.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: