Pages

Rabu, 15 Januari 2014

konfigurasi ISC-DHCP-SERVER pada ubuntu 12.04

root@server:~# gedit /etc/default/isc-dhcp-server

muncul

# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#    Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES=""

---
nah isi   bagian ini
Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1"
jika belum tahu interface berapa yang dipakai maka liat pakai  ifconfig

lalu save

selanjutnya

root@server:~# gedit /etc/dhcp/dhcpd.conf

ini masih trial


#-----------------------------------nuha config---------------------------------------#
# minimal sample /etc/dhcp/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
log-facility local7;

subnet 10.10.10.0 netmask 255.255.255.0 {
 range 10.10.10.100 10.10.10.200;
 option routers 10.10.10.254;
 option domain-name-servers 10.10.10.1;
 option domain-name "thesis.com";
}

#-----------------------------------nuha finish---------------------------------------#

lalu
root@server:~# /etc/init.d/isc-dhcp-server
isc-dhcp-server   isc-dhcp-server6 
root@server:~# /etc/init.d/isc-dhcp-server restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service isc-dhcp-server restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop isc-dhcp-server ; start isc-dhcp-server. The restart(8) utility is also available.
isc-dhcp-server start/running, process 13111
root@server:~# service isc-dhcp-server restart
stop: Unknown instance:
isc-dhcp-server start/running, process 13197
root@server:~# service isc-dhcp-server stop
stop: Unknown instance:
root@server:~# 

0 komentar:

Posting Komentar