Setting DHCP hilang setelah PC Direstart

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
chasing
Posts: 12
Joined: 23 Feb 2011, 00:02
Location: indonesia

Setting DHCP hilang setelah PC Direstart

Postby chasing » 23 Feb 2011, 00:57

hasil Command ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:04:61:47:0f:02
inet6 addr: fe80::204:61ff:fe47:f02/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:63 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11988 (11.9 KB) TX bytes:28788 (28.7 KB)
Interrupt:22 Base address:0x6000

eth0:avahi Link encap:Ethernet HWaddr 00:04:61:47:0f:02
inet addr:169.254.2.226 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:22 Base address:0x6000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:353 errors:0 dropped:0 overruns:0 frame:0
TX packets:353 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:35038 (35.0 KB) TX bytes:35038 (35.0 KB)

Kemudian saya config eth0 dengan command dan hasil
ifconfig eth0 192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0
eth0 Link encap:Ethernet HWaddr 00:04:61:47:0f:02
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::204:61ff:fe47:f02/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:63 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11988 (11.9 KB) TX bytes:30359 (30.3 KB)
Interrupt:22 Base address:0x6000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:367 errors:0 dropped:0 overruns:0 frame:0
TX packets:367 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36530 (36.5 KB) TX bytes:36530 (36.5 KB)

kemudian saya setting dengan command gedit /etc/default/dhcp3-server dengan hasil
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-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="eth0"

kemudian saya edit dhcpd confignya seperti ini
subnet 192.168.1.0 netmask 255.255.255.0 {
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.1;
option domain-name "domain.com";
option routers 192.168.1.1;
option netbios-name-servers 192.168.1.1;
default-lease-time 600;
max-lease-time 604800;
range 192.168.1.10 192.168.1.100;
}

saya restart DHCP servernya dengan hasil
* Stopping DHCP server dhcpd3 [fail]
* Starting DHCP server dhcpd3 [ OK ]

lalu saya edit networking interfacesnya
auto eth0
iface eth0 inet dhcp

lalu saya restart dengan hasil
* Reconfiguring network interfaces... RTNETLINK answers: No such process
There is already a pid file /var/run/dhclient.eth0.pid with pid 3300
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:04:61:47:0f:02
Sending on LPF/eth0/00:04:61:47:0f:02
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.1 port 67
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:04:61:47:0f:02
Sending on LPF/eth0/00:04:61:47:0f:02
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPOFFER of 192.168.1.10 from 192.168.1.1
DHCPREQUEST of 192.168.1.10 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.10 from 192.168.1.1
bound to 192.168.1.10 -- renewal in 285 seconds.
ssh stop/waiting
ssh start/running, process 3850
[ OK ]
sampe langkah ini klient dengan os win*** bisa terhubung dengan mendapatkan ip dari dhcp
kemudian PC (ubuntu desktop edition dengan DHCP terinstall) saya restart, maksud saya agar perubahan menjadi permanen.
setelah masuk ke GUInya lagi saya jalankan perintah
cat /var/log/syslog | grep dhcp | tail
dengan hasil
Feb 23 00:49:22 aredie1 dhcpd: Wrote 2 leases to leases file.
Feb 23 00:49:22 aredie1 dhcpd:
Feb 23 00:49:22 aredie1 dhcpd: No subnet declaration for eth0 (0.0.0.0).
Feb 23 00:49:22 aredie1 dhcpd: ** Ignoring requests on eth0. If this is not what
Feb 23 00:49:22 aredie1 dhcpd: you want, please write a subnet declaration
Feb 23 00:49:22 aredie1 dhcpd: in your dhcpd.conf file for the network segment
Feb 23 00:49:22 aredie1 dhcpd: to which interface eth0 is attached. **
Feb 23 00:49:22 aredie1 dhcpd:
Feb 23 00:49:22 aredie1 dhcpd:
Feb 23 00:49:22 aredie1 dhcpd: Not configured to listen on any interfaces!

akhirnya saya config ulang lagi langkah2 diatas. yang menjadi saya bingung.
klo direstart PCnya settingan hilang, sehingga saya harus setting ulang terus.
mohon saranya kak
User avatar
chasing
Posts: 12
Joined: 23 Feb 2011, 00:02
Location: indonesia

Re: Setting DHCP hilang setelah PC Direstart

Postby chasing » 23 Feb 2011, 00:58

Maaf salam kenal sebelumnya, sy baru di ubuntu desktop edition
User avatar
chasing
Posts: 12
Joined: 23 Feb 2011, 00:02
Location: indonesia

Re: Setting DHCP hilang setelah PC Direstart

Postby chasing » 23 Feb 2011, 00:59

Mohon bantuannya dari rekan-rekan forum
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: Setting DHCP hilang setelah PC Direstart

Postby blackshirt » 23 Feb 2011, 06:54

pakai virtual machine ya ?
User avatar
chasing
Posts: 12
Joined: 23 Feb 2011, 00:02
Location: indonesia

Re: Setting DHCP hilang setelah PC Direstart

Postby chasing » 23 Feb 2011, 11:24

nggak kak, cuma bingung setiap direstart kok ilang2 mulu. nggak mw kesimpen settingannya.


Mohon sarannnya


Thx
chasing
User avatar
maput
Posts: 19
Joined: 12 Jul 2010, 23:36
Location: banda aceh

Re: Setting DHCP hilang setelah PC Direstart

Postby maput » 23 Feb 2011, 12:53

numpang nyimak. Tp kok pake destop ? napa gk pake u-server ?
User avatar
Soekarmana
Posts: 466
Joined: 23 May 2010, 22:34
Location: Denpasar
Contact:

Re: Setting DHCP hilang setelah PC Direstart

Postby Soekarmana » 23 Feb 2011, 15:10

bisa dibuat static tu eth0-nya bro, tapi dengan konsekuensi gak bisa pake network-manager untuk eth0-nya

ini dhcp-nya pake server apa internet sharing?
menurut saya enaknya edit di /etc/rc.local

isikan command

Code: Select all

ifconfig eth0 ip_nya


dicoba dulu bro
User avatar
chasing
Posts: 12
Joined: 23 Feb 2011, 00:02
Location: indonesia

Re: Setting DHCP hilang setelah PC Direstart

Postby chasing » 23 Feb 2011, 18:18

Soekarmana wrote:bisa dibuat static tu eth0-nya bro, tapi dengan konsekuensi gak bisa pake network-manager untuk eth0-nya

ini dhcp-nya pake server apa internet sharing?
menurut saya enaknya edit di /etc/rc.local

isikan command

Code: Select all

ifconfig eth0 ip_nya


dicoba dulu bro


belih soekarmana

makasih buat sarannya. bener bgt itu eth0 perlu diganti ke static.
makasih belih.


thx
chasing
User avatar
Soekarmana
Posts: 466
Joined: 23 May 2010, 22:34
Location: Denpasar
Contact:

Re: Setting DHCP hilang setelah PC Direstart

Postby Soekarmana » 23 Feb 2011, 21:24

chasing wrote:
belih soekarmana

makasih buat sarannya. bener bgt itu eth0 perlu diganti ke static.
makasih belih.


thx
chasing


belih itu apaan bro? :hammer
User avatar
chasing
Posts: 12
Joined: 23 Feb 2011, 00:02
Location: indonesia

Re: Setting DHCP hilang setelah PC Direstart

Postby chasing » 24 Feb 2011, 10:58

Soekarmana wrote:
chasing wrote:
belih soekarmana

makasih buat sarannya. bener bgt itu eth0 perlu diganti ke static.
makasih belih.


thx
chasing


belih itu apaan bro? :hammer


belih itu klo g salah kakak bhs bali cmiiw
User avatar
Soekarmana
Posts: 466
Joined: 23 May 2010, 22:34
Location: Denpasar
Contact:

Re: Setting DHCP hilang setelah PC Direstart

Postby Soekarmana » 24 Feb 2011, 12:17

chasing wrote:
belih itu klo g salah kakak bhs bali cmiiw


kagak pake "h" kali gan :D
beli ato bli gitu...

kok bida tau? asal darimana ni bro?

oot dikit gapapa ya :P
User avatar
chasing
Posts: 12
Joined: 23 Feb 2011, 00:02
Location: indonesia

Re: Setting DHCP hilang setelah PC Direstart

Postby chasing » 24 Feb 2011, 13:44

Soekarmana wrote:
chasing wrote:
belih itu klo g salah kakak bhs bali cmiiw


kagak pake "h" kali gan :D
beli ato bli gitu...

kok bida tau? asal darimana ni bro?

oot dikit gapapa ya :P


batam, tau dari temen yg dari bali beli.
salam kenal ya beli

Return to “Ubuntu Server”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests