Can't ping local host but can ping others

Can't ping local host but can ping others

Post by J.J » Sat, 28 Aug 1999 04:00:00



Hi,

System: FreeBSD 3.2 on Pentium platform.

It was working fine until today.  Today I installed MySQL and Webmin and
configured NFS.  All worked fine except I can't ping localhost (127.0.0.1).
/etc/hosts has the line says 127.0.0.1 localhost.  Where should I look at?

Thanks,
Joseph

 
 
 

Can't ping local host but can ping others

Post by Anil » Sun, 29 Aug 1999 04:00:00


Try, ifconfig lo0  see if its shows anything. If not, I *think* you will
need to do this:
  ifconfig lo0 inet 127.0.0.1

I am assuming you have pseudo-device loop   configured in your kernel
already.

Hope that works AND helps. :)


> Hi,

> System: FreeBSD 3.2 on Pentium platform.

> It was working fine until today.  Today I installed MySQL and Webmin and
> configured NFS.  All worked fine except I can't ping localhost (127.0.0.1).
> /etc/hosts has the line says 127.0.0.1 localhost.  Where should I look at?

> Thanks,
> Joseph


 
 
 

Can't ping local host but can ping others

Post by J.J » Sun, 29 Aug 1999 04:00:00


Thank you for your help!

Joseph


> Try, ifconfig lo0  see if its shows anything. If not, I *think* you will
> need to do this:
>   ifconfig lo0 inet 127.0.0.1

> I am assuming you have pseudo-device loop   configured in your kernel
> already.

> Hope that works AND helps. :)


> > Hi,

> > System: FreeBSD 3.2 on Pentium platform.

> > It was working fine until today.  Today I installed MySQL and Webmin and
> > configured NFS.  All worked fine except I can't ping localhost
(127.0.0.1).
> > /etc/hosts has the line says 127.0.0.1 localhost.  Where should I look
at?

> > Thanks,
> > Joseph

 
 
 

Can't ping local host but can ping others

Post by J.J » Sun, 29 Aug 1999 04:00:00


Here's another problem.  When I reboot the computer, lo0 is down so I can't
ping localhost again.  I have to run ifconfig lo0 inet 127.0.0.1 again to
activate it.  Some of the configuration file should have been modified by
installing MySQL.  This all happened after installed MySQL server.

Thanks again,
Joseph


> Try, ifconfig lo0  see if its shows anything. If not, I *think* you will
> need to do this:
>   ifconfig lo0 inet 127.0.0.1

> I am assuming you have pseudo-device loop   configured in your kernel
> already.

> Hope that works AND helps. :)


> > Hi,

> > System: FreeBSD 3.2 on Pentium platform.

> > It was working fine until today.  Today I installed MySQL and Webmin and
> > configured NFS.  All worked fine except I can't ping localhost
(127.0.0.1).
> > /etc/hosts has the line says 127.0.0.1 localhost.  Where should I look
at?

> > Thanks,
> > Joseph

 
 
 

Can't ping local host but can ping others

Post by Anil » Sun, 29 Aug 1999 04:00:00


What version of fbsd are you using? On 2.2.8, you will need to edit
/etc/rc.conf file and add a line like this to it:

  network_interfaces="XXXX lo0"
  ifconfig_lo0="inet 127.0.0.1"

XXXX is your NIC card.

On 3.X it should be the same, but I can't tell you exactly because I
still had a chance to play with 3.X yet. I don't think rc.conf is used
in 3.x anymore but is there for backward compatibility.

;-)


> Here's another problem.  When I reboot the computer, lo0 is down so I can't
> ping localhost again.  I have to run ifconfig lo0 inet 127.0.0.1 again to
> activate it.  Some of the configuration file should have been modified by
> installing MySQL.  This all happened after installed MySQL server.

> Thanks again,
> Joseph



> > Try, ifconfig lo0  see if its shows anything. If not, I *think* you will
> > need to do this:
> >   ifconfig lo0 inet 127.0.0.1

> > I am assuming you have pseudo-device loop   configured in your kernel
> > already.

> > Hope that works AND helps. :)


> > > Hi,

> > > System: FreeBSD 3.2 on Pentium platform.

> > > It was working fine until today.  Today I installed MySQL and Webmin and
> > > configured NFS.  All worked fine except I can't ping localhost
> (127.0.0.1).
> > > /etc/hosts has the line says 127.0.0.1 localhost.  Where should I look
> at?

> > > Thanks,
> > > Joseph

 
 
 

1. Canned "ping"

    Within a ksh script, I would like to first determine whether or not
a remote
host is alive before I attempt other network access to it, (file reads
or writes).
The ping command seems to be the logical solution, but if I have to wait
for
the ping command to fail due to network time-out to indicate that the
remote
host is not available I've gained nothing over just letting my other
network
access commands time-out.

    Is there a way to execute ping wrapped in a timer - such as in a
subprocess
that gets killed by it's parent if it doesn't end within a practical
time interval?
It seems to me that that should work, but what I'm really looking for is

someone who would share code that has already been written.

    Much appreciated.

2. Funky domains

3. D-link DE220 can PING his own IP, but can't PING others'

4. file locking - Where?

5. Can I prevent pinging from others and still ping others?

6. KERMIT: How to tell which serial line to use?

7. Can ping linux itself, but can't ping others

8. Paging and system calls

9. Strange network problems - pings to host are fine, pings from host fail

10. It's not bad canned meat...

11. Can't ping hosts outside of local network

12. Can't ping the host name or host IP address from host.