Sebelum kita melakukan configurasi DHCP Server kita harus tau apa itu DHCP dan bagai mana sistem kerja DHCP , DHCP merupakan singkatan dari (Dynamic Host Configuration Protocol).
- Cara Kerja DHCP
- IP Least Request
- IP Least Offer
- IP Lease Selection
- IP Lease Acknowledge
Konfigurasi DHCP
server
- Install paket dhcp# apt-get install dhcp3-server
- Eth1 -> terhubung ke LAN# vi /etc/default/dhcp3-server
atau
# vi /etc/default/isc-dhcp-server
INTERFACES="eth1"
- Edit file /etc/dhcp/dhcpd.conf
# nano -w /etc/dhcp/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option domain-name “pnl.ac.id";
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.10 192.168.0.100;
}
Menentukan IP
fixed
- Tambahkan pada file /etc/dhcp3/dhcpd.conf
host kom1 {
hardware ethernet 00:FF:14:01:F7:D7;
fixed-address 192.168.0.2;
}
host kom2 {
hardware ethernet 00:AA:14:01:F7:D7;
fixed-address 192.168.0.3;
}
Ket. Nomor MAC
addrees dan IP tidak boleh ada yang sama

0 Response to "Ubuntu DHCP Server"
Post a Comment