how to install and configure dhcp server
salah satu cara untuk configure dhcp server adalah sbb :
- install dhcp server
user@computer:$ sudo apt-get install dhcp3-server
- ubah file /etc/dhcp3/dhcpd.conf :
user@computer:$ sudo vim /etc/dhcp3/dhcpd.conf
ddns-update-style none;
option domain-name "cuplis.lokal";
option domain-name-servers 192.168.17.12;
option routers 192.168.22.1;
default-lease-time 42300;
max-lease-time 84600;
subnet 192.168.22.0 netmask 255.255.255.0 {
range 192.168.22.1 192.168.22.10;
}
note :
option domain-name “cuplis.lokal”; => untuk menentukan domain name untuk client DHCP
option domain-name-servers 192.168.17.12; => untuk menentukan ip DNS server untuk client DHCP
option routers 192.168.22.1; => untuk menentukan gateway untuk client DHCP
default-lease-time 42300; => untuk menentukan lama peminjaman atau sewa default ip address
max-lease-time 84600; => untuk menentukan lama maksimal peminjaman atau sewa ip address
range 192.168.22.1 192.168.22.10; => untuk menentukan range ip yang akan disewakan atau dipinjamkan oleh server DHCP
source : http://www.howtoforge.com/nat-gateway-iptables-port-forwarding-dns-and-dhcp-setup-ubuntu-8.10-server
Menentukan domain name untuk klient DHCP.
Related posts: