[NTLUG:Discuss] can not ping itself.

MadHat madhat at unspecific.com
Wed May 2 10:14:42 CDT 2001


At 02:56 PM 5/2/2001 +0000, you wrote:

>>From: MadHat <madhat at unspecific.com>
>>>
>>>>>What is the result of "route" ?
>>>>Kernel IP routing table
>>>>Destination     Gateway         Genmask         Flags Metric Ref    Use 
>>>>Iface
>>>>192.168.1.0     192.168.1.1     255.255.255.0   U     0      0        0 
>>>>eth1
>>>>0.0.0.0         65.10.71.194    0.0.0.0         UG    0      0        0 
>>>>eth0
>>>>127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
>>>>
>>>>(65.10.71.194 is assigned ip, 65.1071.129 is gateway ip assigned by @home)
>>>
>>>
>>>I have always seen entries more like this (using your IPs)
>>>
>>>Kernel IP routing table
>>>Destination     Gateway         Genmask         Flags Metric Ref    Use 
>>>Iface
>>>0.0.0.0         65.10.71.129    0.0.0.0         UG    0      0        0 eth0
>>>65.10.71.194    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
>>>65.10.71.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
>>>127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
>>
>>sorry, forgot to explain what the difference...  what you have is an entry
>>for the default route to be your IP, not the gataway IP as it should
>
>do you mean that I should have a line like
>
>0.0.0.0         65.10.71.129    0.0.0.0         UG    0      0        0 eth0
>
>instead of
>
>0.0.0.0         65.10.71.194    0.0.0.0         UG    0      0        0 eth0
>
>(see the different of 129 and 194, 194 is assigned ip, 129 is assigned gw)

correct



>>be.  Also, you don't have a local route to your own IP.
>
>ok, I guess this is my problem/question.
>how do I know (or check) if the ipforward is enabled?

shouldn't matter for this particular issue.  ipforward is for forwarding 
from one interface to the other.



>>What distro are you using?
>RH 6.2

check the files
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0

simple format of
GATEWAY=65.10.71.129

with or without quotes around it are fine.  Also check the rest of your 
setting while there ot verify.



>I would check that your GATEWAY setting
>>is
>>pointed to the gateway and not your own IP.  But usually if that is the
>>case, you can ONLY ping yourself....  but it is worth checking.
>>
>>
>>
>>--
>>MadHat at unspecific.com
>>
>>_______________________________________________
>>http://www.ntlug.org/mailman/listinfo/discuss
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>_______________________________________________
>http://www.ntlug.org/mailman/listinfo/discuss

--
MadHat at unspecific.com




More information about the Discuss mailing list