help pengaturan DHCP..

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
ganome
Posts: 62
Joined: 22 Jun 2012, 11:37
Location: jakarta

help pengaturan DHCP..

Postby ganome » 05 Jun 2013, 12:29

ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.0.1;
option domain-name "local.domain"; #sesuaikan keinginan
option routers 192.168.0.1;
option netbios-name-servers 192.168.0.1;
default-lease-time 600;
max-lease-time 604800;
log-facility local7;
range 192.168.0.100 192.168.0.200;
}
ad yg bs jlsin dri perintah ini ga ya ..
dengan bhasa yg mudah di pahami ..

_______________________
masih belajar
User avatar
Mr12uD1
Posts: 130
Joined: 12 May 2013, 07:05
Location: kediri, Indonesia
Contact:

Re: help pengaturan DHCP..

Postby Mr12uD1 » 05 Jun 2013, 13:18

mencoba om :grin:

subnet 192.168.0.0 netmask 255.255.255.0 {
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;

disitu memuat network ID jaringan kita om.. beserta broadcast addressnya...

option domain-name-servers 192.168.0.1;
option domain-name "local.domain"; #sesuaikan keinginan

tuk ni buat konfigurasi DNS yang kita pake... klo kita menggunakan DNS lokal IP addressnya di tulis disana om...

option routers 192.168.0.1;

ni buat IP router yang ada pada jaringan kita, ini juga nantinya yg dipake di clent sbg default gateway

default-lease-time 600;(10 menit)
max-lease-time 604800;(1 minggu)
log-facility local7;
range 192.168.0.100 192.168.0.200;
}

sedangkan opsi diatas digunakan untuk rentan waktu(dalam detik) IP address yang disewakan ke client serta pada range digunakan untuk IP Address yang diberikan ke client...

sorry bahasa ane amburadul.. :grin: mungkin bisa berkunjung kesini om lebih lengkap

CMIIW... :grin:
User avatar
ganome
Posts: 62
Joined: 22 Jun 2012, 11:37
Location: jakarta

Re: help pengaturan DHCP..

Postby ganome » 05 Jun 2013, 14:43

dhcp klu di kasih ip addres brp aja bsa kan ya ga mesti 192.xxx.xxx

klu kaya gini mksud'a apa ya ..
dhcpd self-test failed. Please fix the config file.
The error was:
Internet Systems Consortium DHCP Server V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp3/dhcpd.conf line 2: subnet 102.168.1.0 netmask 255.0.0.0: bad subnet number/mask combination.
subnet 102.168.1.0 netmask 255.0.0.0
^
Configuration file errors encountered -- exiting
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: help pengaturan DHCP..

Postby thrvers » 05 Jun 2013, 14:58

'
untuk private address silakan dibaca ini kak ganome:
http://en.wikipedia.org/wiki/IP_address ... _addresses

IANA-reserved private IPv4 network ranges:
A) 10.0.0.0 - 10.255.255.255
B) 172.16.0.0 - 172.31.255.255
C) 192.168.0.0 - 192.168.255.255
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: help pengaturan DHCP..

Postby q_p » 05 Jun 2013, 15:17

[quote=ganome]

Code: Select all

...
/etc/dhcp3/dhcpd.conf line 2: subnet 102.168.1.0 netmask 255.0.0.0: bad subnet number/mask combination.
subnet 102.168.1.0 netmask 255.0.0.0
...                                   
Configuration file errors encountered -- exiting
Anda periksa lagi /etc/dhcp3/dhcpd.conf pada baris ke-2. Sesuaikan netmask menjadi netmask 255.255.255.0 seperti yang dimaksudkan dalam pesan error tersebut.