Skip to content

DHCP SERVER

November 4, 2007

DHCP SERVER

(Dynamic Host Configuration Protocol)

 

Merupakan server yang melayani
penyediaan nomor komputer dalam suatu jaringan. Bekerja dalam moode
client-server berdasarkan protocol bbotp (booting protocol).

Metode pemberian nomor komputer dalam
jaringan :

  1. Automatic allocation

  2. dynamic allocation

  3. Static allocation

 

  • Cek apakah paket DHCP terinstall

    rpm -qa | grep dhcp

  • Jika belum, install dengan
    perintah

    urpmi dhcp-server

  • File Konfigurasi

    File configurasi DHCP adalah
    /etc/dhcpd.conf

  • Menjalankan DHCP server

    service dhcpd restart

  • me-restart dhcp server

    service dhcpd restart

     

  • Konfigurasi file /etc/dhcpd.conf

subnet 192.168.0.0
netmask 255.255.255.0 {# Network & Netmask dhcp

option routers
192.168.0.1; # ip dhcp server

option subnet-mask
255.255.255.0; # subnet mask dhcp

option domain-name
“nurulfikri.com”; # nama domain

option
domain-name-server “ns.nurulfikri.com”; # nama dns server

range
dynamic-bootp 192.168.0.128 192.168.0.254; # range ip dhcp client

default lease-time
21600; # waktu yang diberikan suatu host memiliki suatu ip

max lease-time
43200; # max waktu yang diberikan suatu host untuk memiliki suatu ip

 

contoh :

 

ddns-update-style
none;

subnet 10.11.10.0
netmask 255.255.255.0 {

# default
gateway

option
routers 10.11.10.1;

option
subnet-mask 255.255.255.0;

 

option
domain-name “nurulfikri.com”;

 

# Seting
up an ip address is better here

option
domain-name-servers ns.nurulfikri.com;

option
nis-domain “nurulfikri.com,”;

 

range
dynamic-bootp 10.11.10.10 10.11.10.20;

default-lease-time 21600;

max-lease-time 43200;

 

# we want
the nameserver to appear at a fixed address

host ns {

next-server server.nurulfikri.com;

hardware ethernet 00:19:5B:5D:8D:A2;

fixed-address 10.11.10.1;

}

}

From → Linux

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: