restart ip

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
adolf
Posts: 49
Joined: 22 Mar 2010, 16:58
Location: Bogor
Contact:

restart ip

Postby adolf » 13 Apr 2010, 11:04

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

[color:#009900]#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"[/color]


knp bs kyk gt ya gan??
tolong ane ya gan . .
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: restart ip

Postby thrvers » 13 Apr 2010, 11:23

'
$ cat /etc/network/interfaces

isinya apaan??
User avatar
adolf
Posts: 49
Joined: 22 Mar 2010, 16:58
Location: Bogor
Contact:

Re: restart ip

Postby adolf » 13 Apr 2010, 11:25

cat untuk apa gan?
User avatar
c0jack
Posts: 743
Joined: 12 Jan 2010, 10:33
Location: Jogjakarta, Indonesia
Contact:

Re: restart ip

Postby c0jack » 13 Apr 2010, 11:32

cat - concatenate files and print on the standard output

*sumber : manual page :D


regards,
c0jack
User avatar
adolf
Posts: 49
Joined: 22 Mar 2010, 16:58
Location: Bogor
Contact:

Re: restart ip

Postby adolf » 13 Apr 2010, 11:37

[color:#33CC00]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[/color]

kyk gt tuh gan
User avatar
c0jack
Posts: 743
Joined: 12 Jan 2010, 10:33
Location: Jogjakarta, Indonesia
Contact:

Re: restart ip

Postby c0jack » 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
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: restart ip

Postby thrvers » 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
Posts: 49
Joined: 22 Mar 2010, 16:58
Location: Bogor
Contact:

Re: restart ip

Postby adolf » 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
Posts: 743
Joined: 12 Jan 2010, 10:33
Location: Jogjakarta, Indonesia
Contact:

Re: restart ip

Postby c0jack » 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
Posts: 49
Joined: 22 Mar 2010, 16:58
Location: Bogor
Contact:

Re: restart ip

Postby adolf » 13 Apr 2010, 13:15

kl tu mah dhcp,, ane kan mw nya static
User avatar
c0jack
Posts: 743
Joined: 12 Jan 2010, 10:33
Location: Jogjakarta, Indonesia
Contact:

Re: restart ip

Postby c0jack » 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
Posts: 49
Joined: 22 Mar 2010, 16:58
Location: Bogor
Contact:

Re: restart ip

Postby adolf » 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
Posts: 743
Joined: 12 Jan 2010, 10:33
Location: Jogjakarta, Indonesia
Contact:

Re: restart ip

Postby c0jack » 13 Apr 2010, 13:51

[color:#33CC00]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[/color]

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
Posts: 49
Joined: 22 Mar 2010, 16:58
Location: Bogor
Contact:

Re: restart ip

Postby adolf » 14 Apr 2010, 08:57

mksh bro . . .ane coba ntr ya gan . .
User avatar
c0jack
Posts: 743
Joined: 12 Jan 2010, 10:33
Location: Jogjakarta, Indonesia
Contact:

Re: restart ip

Postby c0jack » 14 Apr 2010, 10:18

siip bro, ditunggu reportnya :)


regards,
c0jack
User avatar
adolf
Posts: 49
Joined: 22 Mar 2010, 16:58
Location: Bogor
Contact:

Re: restart ip

Postby adolf » 15 Apr 2010, 10:04

okeh bro c0jack,,,mksh aneh dah bs internetan skrg pk ip statis,,
thankz bro . . .
:grin:
User avatar
c0jack
Posts: 743
Joined: 12 Jan 2010, 10:33
Location: Jogjakarta, Indonesia
Contact:

Re: restart ip

Postby c0jack » 15 Apr 2010, 14:01

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


regards,
c0jack

Who is online

Users browsing this forum: No registered users and 17 guests