Networking Forums

Networking Forums > Computer Networking > Linux Networking > Funny ping IP problem

Reply
Thread Tools Display Modes

Funny ping IP problem

 
 
riviereg
Guest
Posts: n/a

 
      09-14-2004, 05:22 PM
Dear all linux and networking user,

I have a very strange problem with on of my remote server:
I can connect on this server via ssh and http (apache), no problem.

My sql server start, (I can check it with phpmyadmin on this server
connected to localhost) but I cannot connect to this server with mysql:
telnet 'my ip' 3306 is not working: connection refused

I try some test, different configurations, but I find a strange problem:

On this server, I can ping localhost, but I cannot ping the IP
of my network card (from this server on it's own IP)!
But I can remotly connect to this IP with ssh or http or ping this IP
from somewhere else ....

I use a kernel 2.6.6 on this computer ?
I try to restart my networking remove all inside /etc/hosts
nothing ...

Any ideas to solve this problem ?

Thank you in advance,
Guillaume
 
Reply With Quote
 
 
 
 
riviereg
Guest
Posts: n/a

 
      09-14-2004, 06:14 PM
riviereg wrote:
> Dear all linux and networking user,
>
> I have a very strange problem with on of my remote server:
> I can connect on this server via ssh and http (apache), no problem.
>
> My sql server start, (I can check it with phpmyadmin on this server
> connected to localhost) but I cannot connect to this server with mysql:
> telnet 'my ip' 3306 is not working: connection refused
>
> I try some test, different configurations, but I find a strange problem:
>
> On this server, I can ping localhost, but I cannot ping the IP
> of my network card (from this server on it's own IP)!
> But I can remotly connect to this IP with ssh or http or ping this IP
> from somewhere else ....
>
> I use a kernel 2.6.6 on this computer ?
> I try to restart my networking remove all inside /etc/hosts
> nothing ...
>
> Any ideas to solve this problem ?
>
> Thank you in advance,
> Guillaume



I solve this problem of mysql (debian install, remove skip_networking
option in /etc/mysql/my.cnf)

But I still cannot ping my IP interface with this server ...
I try a traceroute and it go somewhere, but I don't know where:
(my ip is x.x.x.x and my gateway is y.y.y.y)

$> ifconfig -aeth1 Link encap:Ethernet HWaddr 00:0A:5E:1A:3B:8C
inet addr:x.x.x.x Bcast: x.x.x.d Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20837006 errors:0 dropped:0 overruns:0 frame:0
TX packets:5472 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3144723974 (2.9 GiB) TX bytes:5547317 (5.2 MiB)
Interrupt:23 Memory:feaf8000-0
....

$> traceroute x.x.x.x

1 y.y.y.y (y.y.y.y) 0.768 ms 0.489 ms 0.361 ms
2 z.z.z.z (z.z.z.z) 3.775 ms 3.830 ms 3.693 ms
3 a.a.a.a (a.a.a.a) 3.912 ms 3.837 ms 3.679 ms
4 foo.foo.com (b.b.b.b) 4.349 ms 4.549 ms 4.581 ms
5 faa.faa.com (c.c.c.c) 4.084 ms 3.629 ms 4.007 ms
6 fuu.fuu.com (d.d.d.d) 4.007 ms 3.897 ms 4.143 ms
7 * * *

etc.
 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      09-15-2004, 08:01 AM
On Wed, 15 Sep 2004 00:22:48 +0700, riviereg
<(E-Mail Removed)> wrote:
>
> On this server, I can ping localhost, but I cannot ping the IP
> of my network card (from this server on it's own IP)!
> But I can remotly connect to this IP with ssh or http or ping this IP
> from somewhere else ....
>

Is the IP and hostname listed in /etc/hosts? Does the command
'hostname -i' give that address?



--
If quizzes are quizzical, what are tests? (Think about it)
 
Reply With Quote
 
riviereg
Guest
Posts: n/a

 
      09-15-2004, 05:46 PM
Bill Marcum wrote:
> On Wed, 15 Sep 2004 00:22:48 +0700, riviereg
> <(E-Mail Removed)> wrote:
>
>>On this server, I can ping localhost, but I cannot ping the IP
>>of my network card (from this server on it's own IP)!
>>But I can remotly connect to this IP with ssh or http or ping this IP
>>from somewhere else ....
>>

>
> Is the IP and hostname listed in /etc/hosts? Does the command
> 'hostname -i' give that address?
>
>
>

Yes,
let's suppose my hostname is 'myhostname'

$> hostname
myhostname
$> hostname -i
x.x.x.x
$> ping x.x.x.x
PING x.x.x.x (x.x.x.x) 56(84) bytes of data.

Do I have to add somthing in my /etc/hosts :

127.0.0.1 localhost
x.x.x.x myhostname

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
jokes and funny pictures Karthick Broadband 1 01-14-2008 03:23 PM
funny addresses... RJK Wireless Networks 5 02-21-2007 09:47 PM
Funny Sms Jokes rameezkhattak2007@yahoo.com Broadband 1 07-17-2006 10:37 PM
ADSL line funny Cuprager Broadband 3 02-28-2006 10:15 PM
[Maybe OT] but DANG funny Mike Labosh Windows Networking 1 08-16-2005 04:33 PM



1 2 3 4 5 6 7 8 9 10 11