dhcp server ubuntu 12.04

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

dhcp server ubuntu 12.04

Postby sipelaut » 11 Nov 2014, 16:04

salam
saya punya konfigurasi dhcp seperi berikut

Code: Select all

# untuk di dalam
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.240;
option broadcast-address 192.168.11.16;
option routers 192.168.11.1;
option domain-name-servers 192.168.11.1;
option domain-name "umum.net";
#interface eth0;
#log-facility local7;
subnet 192.168.11.0 netmask 255.255.255.240 {
range 192.168.11.2 192.168.11.15;
# range 192.168.11.8 192.168.11.15;
}

host datacenter {
hardware ethernet fc:75:16:67:64:2b;
fixed-address 192.168.11.3;
}

host alika {
hardware ethernet 00:15:17:B3:85:F5;
fixed-address 192.168.11.2;
}

host simsurat {
hardware ethernet c4:34:6b:22:51:80;
fixed-address 192.168.11.4;
}


# untuk keluar
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.224;
option broadcast-address 192.168.10.31;
option routers 192.168.10.1;
option domain-name-servers 192.168.11.1;
option domain-name "umum.net";
#interface eth1;
subnet 192.168.10.0 netmask 255.255.255.224 {
range 192.168.10.3 192.168.10.30;
# range 192.168.10.16 192.168.10.30;
}

dan networknya seperti berikut

Code: Select all

auto lo
iface lo inet loopback

#ke dalam umum
auto eth0
iface eth0 inet static
address 192.168.11.1
netmask 255.255.255.240
network 192.168.11.0
broadcast 192.168.11.15
gateway 192.168.11.1


# ke jaringan luar
auto eth1
iface eth1 inet static
address 192.168.10.1
network 192.168.10.0
netmask 255.255.255.224
broadcast 192.168.10.31
gateway 192.168.10.1

# ke modem
auto eth2
iface eth2 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255



auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth2 up # line maintained by pppoeconf
provider dsl-provider

dilihat dari range udah dibagi
tapi yg bikin jengkel kenapa di user dengan ip 192.168.11.XX
kok gatewaynya ke 192.168.10.1 :mad: :mad:
harusnya kan gatewaynya ke 192.168.11.1
Image
memang ngak ada masalah sichh dengan gatewy tersebut
cuman yg jadi masalah, salah satu server saya tidak bisa update atau terkonesi ke internet gara2 gatewaynya ke 192.168.10.1 THIS MAKE ME ANGRYYYYYYYY,

script konfigurasi itu sebelumnya aku terapin di ubuntu 10.04 ngak jadi msalah.
tapi ketika aku upgrade ke ubuntu 12.04 malah kacau gitu
bahkan kemarin server tidak bisa di shutdown sama seklai dikarenakan ada conflik di networknya
mohon bantuannya sodara-sodara
wassalam
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: dhcp server ubuntu 12.04

Postby sipelaut » 12 Nov 2014, 10:47

wahh sepi...
tapi udah solved
ternyata saya salah naruh "{ }"
aneh padahal di ubuntu 10.04 jalan :hajarpc: :hajarpc: :hajarpc: :hajarpc: :hajarpc: :hajarpc: :hajarpc: :hajarpc: :hajarpc: :hajarpc:
User avatar
bang_andi
Posts: 398
Joined: 03 Sep 2010, 09:07
Location: Di sekitar sungai musi...
Contact:

Re: dhcp server ubuntu 12.04

Postby bang_andi » 12 Nov 2014, 10:54

makasih om sipelaut atas tritnya, sy jadi ikutan belajar juga.. + trit jg lucu sampe marah-marah sndiri hehe

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 20 guests