IGOS Nusantara dan server DHCP

Dari IGNwiki
Langsung ke: navigasi, cari

Instal DHCP

# yum -y install dhcp

Salin DHCP dari user ke etc dengan perintah :

# cp /usr/share/doc/dhcp-3.0.5 /dhcpd.conf.sample /etc/dhcpd.conf

Edit settingan DHCP

# Isi berkas /etc/dhcpd.conf
ddns-update-style none;
ignore client-updates;
subnet 192.168.1.0 netmask 255.255.255.0 {
# default gateway
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;

option nis-domain domain.org;
option domain-name domain.org;
option domain-name-servers 203.84.136.2, 203.84.140.4;
range dynamic-bootp 192.168.1.128 192.168.1.254;
default-lease-time 21600;
max-lease-time 43200;
  • Jalankan DHCP dengan perintah:
# /etc/init.d/dhcpd start