Artikel-artikel sederhana tentang seluk-beluk Dunia IT.

Motivasi Menulis

Admin Server Redhat - Setting DHCP

Sebelumnya saya pernah posting setting dns server di redhat kali ini saya akan bahas lanjutannya tentang setting dhcpnya di redhat. DHCP Adalah singkatan dari Dynamic Host Configuration Protocol yang artinya dinama apabila sebuah computer yang tersambung jaringan bersetting DHCP maka ia akan mendapat ip secara otomatis dari ip yang tersedia dalam jaringan tersebut, jadi lebih fleksibel dan efektif. Sekarang saya bahas step – stepnya :

Paket-paket yang perlu diinstall untuk konfigurasi DHCP
1.    dhcp-3.0pl1-23.i386.rpm (CD RedHat ke-2)
2.    dhcp-devel-3.0pl1-23.i386.rpm (CD RedHat ke-2)


- ketik #rpm –qa | grep dhcp         untuk mengecek paket instalasi nomer 1 & 2
  • Mounting cd ke-2 di drive, #mount /dev/cdrom /mnt/cdrom 
  • Masuk ke daftar paket yang ada di cd ke-2, #cd /mnt/cdrom/RedHat/RPMS 
  • Untuk melihat dengan cepat paket yang akan di install, #ls dhc* [enter] 
  • Install paket 1&2 dengan #rpm –ivh dhcp-3.0pl1-23.i386.rpm dan #rpm –ivh dhcp-devel-3.0pl1-23.i386.rpm  
  • Setelah selesai, kita setting konfigurasi² nya.
1. Copykan file ”dhcpd.conf.sample” yang terletak di ”/usr/share/doc/dhcp-3.0pl1/” menjadi ”dhcp.conf” yang kemudian di letakkan di direktori ”/etc/” dengan perintah #cp /usr/share/doc/dhcp-3.0pl1/dhcpd.conf.sample[spasi]/etc/dhcp.conf [enter] 
2. Edit file ”dhcp.conf” dengan #vi /etc/dhcp.conf dan settinglah seperti dibawah ini : 


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

subnet 192.168.1.0 netmask 255.255.255.224 {

# --- default gateway
  option routers            192.168.1.7;
  option subnet-mask        255.255.255.224;

  option nis-domain         "adhie.net";
  option domain-name        "adhie.net";
  option domain-name-servers    192.168.1.7;

  option time-offset        -18000; # Eastern

Standard Time
# option ntp-servers             192.168.1.7;
# option netbios-name-servers    192.168.1.7;
# --- 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.1.15 192.168.1.30;
    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;
    }
}

3. Setelah selesai jangan lupa save dengan perintah “ctrl+c >>> :x “ atau dengan “ctrl+c >>> :wq “ 
4. serta jangan lupa restart servicenya #service dhcpd restart dan untuk mengecek pada client yang sebelumnya di set “Obtain an IP address automatically” apakah client mendapatkan IP secara otomatis ataukah tidak ?? 
5. Agar saat booting dapat berjalan secara otomatis masuk ke SETUP ketik dengan perintah #setup, Setup->System Services->cek list pada service ”dhcpd” selesai.

apabila saat pengecekan telah berhasil maka saya ucapkan selamat pada anda karena telah berhasil mensetting DHCP. sekian artikel saya mengenai setting dhcp di redhat semoga bermanfaat bagi sobat sekalian. dan tunggu artikel saya selanjutnya ya mengenai admin server redhat.
Labels: artikel linux, Networking, Redhat

Thanks for reading Admin Server Redhat - Setting DHCP. Please share...!

4 komentar on Admin Server Redhat - Setting DHCP

  1. based on the dhcp article, the research could be a reference link below

    http://repository.gunadarma.ac.id/bitstream/123456789/2181/1/02-03-004-IP_Mobile%5BArum%5D.pdf
    thank you

    BalasHapus
  2. This is the precise weblog for anybody who needs to seek out out about this topic. You notice so much its almost arduous to argue with you. You positively put a brand new spin on a subject that's been written about for years. Nice stuff, simply nice!

    BalasHapus
  3. Very interesting blog. A lot of blogs I see these days don't really provide anything that attract others, but I'm most definitely interested in this one. Just thought that I would post and let you know.

    BalasHapus
  4. It was very useful for me. Keep sharing such ideas in the future as well. This was actually what I was looking for, and I am glad to came here! Thanks for sharing the such information with us.

    BalasHapus

Blog ini dofollow jadi jangan lupa berikan komentar, No Spam !!!.

Back To Top