[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cannot ping localhost



On Sat, Mar 03, 2007 at 01:59:15PM +0100, Joe Hart wrote :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Bruno Delalleau wrote:
> > Hello debianers!
> > 
> > For some reason I can no longer ping localhost:
> > 
> > ping -c 3 localhost
> > PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
> > 
> > --- localhost.localdomain ping statistics ---
> > 3 packets transmitted, 0 received, 100% packet loss, time 2000ms
> > 
> > I saw that when I tried to configure my printer using the web
> > interface:
> > 
> > http://localhost:631/admin
> > 
> > If I use as root: ifconfig lo, I can ping localhost.
> > 
> > But the next time I reboot I cannot ping localhost: I have again to
> > become root and use ifcong.
> > 
> > 
> > So, my question: how do I save the command ifconfig lo in some place
> > so that I don't have to redo the same procedure? Is there a script or
> > a config file?
> > 
> > This is the content of my /etc/network/interfaces file:
> > 
> > ### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT
> >     BEFORE IT.
> > auto lo eth1 eth2
> > 
> > iface lo inet loopback
> > 
> > ### END OF DEBCONF AREA.  PLACE YOUR EDITS BELOW; THEY WILL BE
> >     PRESERVED.
> >  
> > I'm sure that there should be a trick, but which one? I swear that I
> > have tried to RTFM!
> > 
> 
> You must have trimmed that file because there is no definition for eth1
> or eth2, and for that matter, where is eth0?
> 

Thanks for helping. I followed your advice and tried to clarify the
situation of my network. Now it's working again.

Thanks also to Jeff who helped me; I think I understand better now the
network question. 

-- 
*****************
Bruno Delalleau
Debian Sarge user
Linux since 1998
*****************



Reply to: