restart ip

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
Post Reply
User avatar
adolf
Contact:

restart ip

Post 13 Apr 2010, 11:04

agan - agan ,, ane td mw restart pk kyk gn :

#sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... /etc/network/interfaces:8: interface eth0 declared allow-auto twice
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:8: interface eth0 declared allow-auto twice
ifup: couldn't read interfaces file "/etc/network/interfaces"



knp bs kyk gt ya gan??
tolong ane ya gan . .


User avatar
thrvers
Contact:

Post 13 Apr 2010, 11:23

'
$ cat /etc/network/interfaces

isinya apaan??


User avatar
adolf
Contact:

Post 13 Apr 2010, 11:25

cat untuk apa gan?


User avatar
c0jack
Contact:

Post 13 Apr 2010, 11:32

cat - concatenate files and print on the standard output

*sumber : manual page :D


regards,
c0jack


User avatar
adolf
Contact:

Post 13 Apr 2010, 11:37

auto eth0
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.1.1.250
netmask 255.255.255.0
gateway 10.1.1.210


kyk gt tuh gan


User avatar
c0jack
Contact:

Post 13 Apr 2010, 11:43

bro adolf mau pake ip dhcp atau static? kalo pake dhcp, bagian ini di comment (diberi # di awal baris) atau dihapus sekalian

Code: Select all

auto eth0
iface eth0 inet static
address 10.1.1.250
netmask 255.255.255.0
gateway 10.1.1.210
kalo mau pake ip static bagian ini di comment atau dihapus sekalian

Code: Select all

auto eth0
iface eth0 inet dhcp
regards,
c0jack


User avatar
thrvers
Contact:

Post 13 Apr 2010, 11:43

'
loopback kok nda ada yah?? (tp bukan ini masalahnya)

hehehe dah kduluan bro c0jack :D

ganti kek gini deh klo static
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.1.1.250
netmask 255.255.255.0
gateway 10.1.1.210


User avatar
adolf
Contact:

Post 13 Apr 2010, 12:58

udah ane pk bro,,td g ke copy,,ane ake loopback jg..
tetep ajah hasilnya kyk gt,,,ane pk static


User avatar
c0jack
Contact:

Post 13 Apr 2010, 13:08

udah di comment bagian ini bro?

Code: Select all

auto eth0
iface eth0 inet dhcp
regards,
c0jack


User avatar
adolf
Contact:

Post 13 Apr 2010, 13:15

kl tu mah dhcp,, ane kan mw nya static


User avatar
c0jack
Contact:

Post 13 Apr 2010, 13:28

hmmm, sepertinya terjadi misunderstanding.
ok, kita telusuri masalah bro adolf dari awal. isi dari file /etc/network/interface awalnya adalah seperti ini
[spoiler]

Code: Select all

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth0
iface eth0 inet static
address 10.1.1.250
netmask 255.255.255.0
gateway 10.1.1.210
[/spoiler]
trus waktu di restart service networknya muncul pesan error
[spoiler]

Code: Select all

#sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... /etc/network/interfaces:8: interface eth0 declared allow-auto twice
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:8: interface eth0 declared allow-auto twice
ifup: couldn't read interfaces file "/etc/network/interfaces"
[/spoiler]
trus bro adolf inginnya pake ip static
nah solusi saya, comment deklarasi eth0 yang pake dhcp. isi dari file /etc/network/interface jadi seperti ini
[spoiler]

Code: Select all

auto lo
iface lo inet loopback

#auto eth0
#iface eth0 inet dhcp

auto eth0
iface eth0 inet static
address 10.1.1.250
netmask 255.255.255.0
gateway 10.1.1.210
[/spoiler]
kalo udah restart service network nya. bagaimana, apakah masih error?


regards,
c0jack


User avatar
adolf
Contact:

Post 13 Apr 2010, 13:37

sory bro c0jack,,, tadi ane salah copy,,,mksd yg dhcp tuh,,loopback . . . .

ane udah pk kyk gt bro,,tp pesen if:down itu msh ada

oya ane lp ngsh tw,,di folder if-up.d ada file namanya ssh-server itu ngaruh ga seh?


User avatar
c0jack
Contact:

Post 13 Apr 2010, 13:51

adolf wrote:auto eth0
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.1.1.250
netmask 255.255.255.0
gateway 10.1.1.210


kyk gt tuh gan
apa isi file /etc/network/interface nya seperdi diatas?
kalo iya, perhatikan baris yang ada tulisan auto nya. seharusnya seperti ini

Code: Select all

auto lo #perhatikan baris ini
iface lo inet  loopback

auto eth0 #perhatikan baris ini
iface eth0 inet static
        address 10.1.1.250
        netmask 255.255.255.0
        gateway 10.1.1.210
regards,
c0jack


User avatar
adolf
Contact:

Post 14 Apr 2010, 08:57

mksh bro . . .ane coba ntr ya gan . .


User avatar
c0jack
Contact:

Post 14 Apr 2010, 10:18

siip bro, ditunggu reportnya :)


regards,
c0jack


User avatar
adolf
Contact:

Post 15 Apr 2010, 10:04

okeh bro c0jack,,,mksh aneh dah bs internetan skrg pk ip statis,,
thankz bro . . .
:grin:


User avatar
c0jack
Contact:

Post 15 Apr 2010, 14:01

siip dah ;) ;)
sepertinya udah solved nih, silahkan om momod untuk ditindak lanjuti :)


regards,
c0jack


Post Reply

Who is online

Users browsing this forum: No registered users and 83 guests