Ditulis pada tanggal 22 October 2013, oleh admin, pada kategori Artikel, Jaringan Komputer, Litbang

DHCP (dynamic host configuration protocol) adalah sistem layanan perangkat lunak yang digunakan untuk memberikan konfigurasi jaringan dalam sebuah jaringan komputer berbasis IP.

Instalasi paket:
[code lang="bash"]# yum install dhcpd[/code]

Skema jaringan:

  • 10 komputer dengan alamat fisik yang telah diketahui dan mendapat IP yang tetap (192.168.0.1…192.168.0.10)
  • ~20 komputer dengan alamat fisik yang telah diketahui dan mendapat IP secara dinamis (acak-semu antara 192.168.0.101…192.168.0.20)

Berkas konfigurasi:
Berkas konfigurasi yang digunakan untuk DHCP server IPv4 di Fedora adalah etc/dhcp/dhcpd.conf

[code]# dhcpd.conf

# option definitions common to all supported networks...
option domain-name "link.elektro.ub.ac.id";
option domain-name-servers 175.45.184.164, 8.8.8.8;
default-lease-time 600;
max-lease-time 7200;

subnet 172.20.9.0 netmask 255.255.255.0{
}

subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.254;
option subnet-mask 255.255.255.0;
option domain-search "link.elektro.ub.ac.id";
option domain-name-servers 175.45.184.164,8.8.8.8;
range 192.168.0.101 192.168.0.120;
}

host link1 {
option host-name "link1.link.elektro.ub.ac.id";
hardware ethernet f4:ce:46:30:52:06;
fixed-address 192.168.0.1;
}

host link2 {
option host-name "link2.link.elektro.ub.ac.id";
hardware ethernet f4:ce:46:30:46:e1;
fixed-address 192.168.0.2;
}

host link3 {
option host-name "link3.link.elektro.ub.ac.id";
hardware ethernet d8:d3:85:74:15:42;
fixed-address 192.168.0.3;
}

host link4 {
option host-name "link4.link.elektro.ub.ac.id";
hardware ethernet f4:ce:46:2f:1f:27;
fixed-address 192.168.0.4;
}

host link5 {
option host-name "link5.link.elektro.ub.ac.id";
hardware ethernet 18:a9:05:c0:a6:ed;
fixed-address 192.168.0.5;
}

host link6 {
option host-name "link6.link.elektro.ub.ac.id";
hardware ethernet f4:ce:46:31:c2:31;
fixed-address 192.168.0.6;
}

host link7 {
option host-name "link7.link.elektro.ub.ac.id";
hardware ethernet f4:ce:46:32:06:4e;
fixed-address 192.168.0.7;
}

host link8 {
option host-name "link8.link.elektro.ub.ac.id";
hardware ethernet d8:d3:85:74:15:3d;
fixed-address 192.168.0.8;
}

host link9 {
option host-name "link9.link.elektro.ub.ac.id";
hardware ethernet f4:ce:46:32:07:4f;
fixed-address 192.168.0.9;
}

host link10 {
option host-name "link10.link.elektro.ub.ac.id";
hardware ethernet 18:a9:05:c0:a6:ab;
fixed-address 192.168.0.10;
}

[/code]

Penyala-matian:
[code lang="bash"]# service dhcpd start[/code]
atau
[code lang="bash"]# service dhcpd restart[/code]

Referensi
Configuring a DHCP Server. http://docs.fedoraproject.org/en-US/Fedora/13/html/Deployment_Guide/s1-dhcp-configuring-server.html (diakses 20 Oktober 2013)