networking >> Strange network problems - pings to host are fine, pings from host fail

by David Brown » Tue, 02 Dec 2008 01:56:48 GMT

Sorry for the long post - I've tried to outline the symptoms of my
problem, and what I've tried to fix it.


I'm having some networking problems with a PC running an old version of
Red Hat (kernel 2.2). The PC came with a machine we have bought
second-hand - as far as I know, everything was working before the
machine was moved to our company.

To keep things simple, we have the Red Hat machine connected to a
Windows XP machine that came with it, with only a simple switch in
between. Each machine is set up with a fixed IP address on the same
network.

From the XP machine, I can ping the Red Hat machine reliably and
quickly. From the Red Hat machine, pings to the XP machine /generally/
fail - typically there are about 80%-90% failures. Those pings that
don't fail, are fast (reply time about 1 ms). On the XP machine, it's
easy to see the packet counters showing packets in and replies out. On
the Red Hat machine, ifconfig shows similar packet rx and tx counts, and
zero error counts.

arping to the XP machine from the Red Hat machine is reliable and fast.

When we try a browser on the XP machine and address the web server on
the Red Hat host, there is generally a long pause (perhaps minutes),
then suddenly the page appears.

We have tried using another Linux box in place of the original XP
machine, with the same results from the Red Hat system.

We have tried replacing the cables and switch, with no effect - given
that arpings are working perfectly it's hard to see how it could be a
hardware problem.

I'm not very familiar with Red Hat or a 2.2 kernel (my experience is
mostly with Debian and related distros, and with 2.4 and 2.6 kernels).
But "ipchains -L" shows no firewalling (everything accepted), "ifconfig"
and "route -n" have the expected setup, and I could not stop anything
unexpected with "sysctrl".

One of my colleagues will try a different network card this evening.


Any ideas or tips would be much appreciated. We've tried pretty much
every sensible idea we can think of, so I'm ready to listen to any crazy
or unlikely tricks.

mvh.,

David


networking >> Strange network problems - pings to host are fine, pings from host fail

by Balwinder S Dheeman » Tue, 02 Dec 2008 02:44:45 GMT





I think, you need to check DNS settings/entries on both of your XP as
well as RH machines; better automate all these and, or other such things
with the help of a DHCP server.

Moreover, try syncing your C:\WINDOWS\system32\drivers\etc\hosts file on
XP machine with the one /etc/hosts on you RH machine.

Or, better run a DNS server having zones for local/private network/segments.

Hope that helps,
--
Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709
Anu'z Linux@HOME (Unix Shoppe) Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India Gentoo, Fedora, Debian/FreeBSD/XP
Home: http://cto.homelinux.net/ ~bsd/ Visit: http://counter.li.org/



networking >> Strange network problems - pings to host are fine, pings from host fail

by Robert Harris » Tue, 02 Dec 2008 02:52:36 GMT



You may well have a hardware problem in your network. Try connecting
your Red Hat machine directly to your XP machine with a crossover cable
and try pinging again.

Robert


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

by Tauno Voipio » Tue, 02 Dec 2008 03:17:29 GMT




Have you tried ping -n ?

--

Tauno Voipio
tauno voipio (at) iki fi



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

by David Brown » Tue, 02 Dec 2008 04:38:38 GMT

alwinder S Dheeman wrote:

It's not a DNS problem - I'm pinging by IP address. I'm trying to keep
things as simple as possible until I know what's going wrong.

We have a DNS server on the router to which these machines will be
attached, once we've got this problem figured out. And yes, I'll be
using the hosts files on both machines to make sure the naming is right.

Thanks for the ideas anyway.

mvh.,

David


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

by David Brown » Tue, 02 Dec 2008 04:43:39 GMT

obert Harris wrote:

We thought of that, but I couldn't find a crossover cable at the office
(we haven't needed crossover cables for a decade or so). We have tried
connecting using only a modern switch, and also using an old 10 MBit
hub, as well as connecting them on the LAN side of a small router (a
LinkSys WRT54GL running openwrt). There were absolutely no differences,
so I don't think the problem can be there.

If there is a hardware problem, it must lie with the network card on the
Red Hat machine, as everything else has been tested (different cables,
different target machines, etc.). It's conceivable that the card has
come lose while transporting the machine to our offices, I suppose.
I'll know a little more in the morning (after my colleague has tried a
different network card).


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

by David Brown » Tue, 02 Dec 2008 05:15:42 GMT





I'm already pinging by ip address, so "ping -n" should not make a
difference. Or is it the case that with this setup (either Red Hat
specific, or kernel 2.2, or older versions of ping and the resolver
libraries), that ping without the "-n" will try to do a reverse DNS
lookup to find a name for the ip address I'm pinging? I must admit that
I haven't worried too much about DNS so far, since I am sticking to IP
addresses first. The DNS server specified on the Red Hat machine does
not exist in our network (it is a local address on the original user's
network), so perhaps ping is hanging when trying to resolve a name for
the address. A similar thing may be happening with the web server
accessed by the client machine. This is not a problem I've seen before
(I've seen other DNS issues, and also set up nodes and networks with no
DNS at all), but it may just be the problem.

I'll try out some fixes first thing in the morning when I'm back at the
office (firstly by putting the ip addresses I'm pinging in the hosts file).

Thanks for the hint!

mvh.,

David


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

by Allen McIntosh » Tue, 02 Dec 2008 09:08:30 GMT





By default, ping tries reverse DNS on the source IP address of the
packet it gets back.


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

by David Brown » Tue, 02 Dec 2008 16:06:06 GMT






That was the problem. A couple of lines in the hosts file (and correct
DNS setup once the system was connected to the rest of the network), and
everything worked perfectly.

Many thanks to those who replied on this thread - I've learned something
new, and fixed our problem.

mvh.,

David




Similar Threads

1. problem configuring network ("host" works, "ping" doesn't)

2. ssh fails without prior ping or host ..

Hello NG,

what can be the cause for the following

ssh root@myHost
connect: no route to host

however thoese both work

ping myHost
ssh root@myHost
passwd:

or
host myHost
ssh root@myHost
passwd:


Regards, Daniel


3. pinging to neighbour host problem

4. arp problem in pinging host

[Removed comp.protocols.tcp-ip since it isn't relevant]

I guess I should have asked for ifconfig -a in the same post - 
newsreader won't let me go back and look at original.  Anyway
> Routing table for hostA
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
> eth0
> 172.16.1.0      192.168.1.1     255.255.255.0   UG    0      0        0
> eth0
OK but redundant, since it is covered by the default route.
> 0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0
> eth0
So eth0 has an IP addr of 192.168.1.x where x != 1, and is connected by 
a crossover cable to eth1 on R1.  eth1 on R1 has address 192.168.1.1. 
OK so far?

> Routing table for R1
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
> eth1
> 172.16.1.0      0.0.0.0	  255.255.255.0   UG    0      0        0 eth0
Redundant.
> 10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0
> eth0
> 0.0.0.0         10.1.1.100      0.0.0.0         UG    0      0        0
> eth0
eth1 had address 192.168.1.1 and is connected to A.
eth0 has address 10.1.1.1 and is connected to R2.  More on this later.
> 
> I have also crosscable connection of R1 to another R2  with routing
> table
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
> eth0
> 172.16.1.0      0.0.0.0	  255.255.255.0   UG    0      0        0 eth1
> 10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0
> eth0
> 0.0.0.0         10.1.1.1        0.0.0.0         UG    0      0        0
> eth0
eth0 has address 10.1.1.100 and is connected to R1 via crossover cable? 
  I see several things wrong with this.  First, R1 and R2 send default 
traffic to each other.  Second, it would be more usual to use a netmask 
of 255.255.255.0 for the 10.1.1.0 network.  Third, I don't understand 
how the 192.168.1 entry got here or what it is supposed to be doing. 
(There are two wildly different networks assigned to the same interface 
with no gateway on either entry.)  The 172.16.1.0 entry looks funny too. 
  What is the address of eth1 supposed to be?


I think you need to sit down with a piece of paper and draw your 
network.  For each network segment (each crossover cable is one) write 
in the interface name, the addresses of each interface, the network 
address, the broadcast address and the netmask.  Then double check that 
the routing tables and addresses (output of ifconfig -a or equivalent) 
match the diagram.

5. Can ping on both ip and host name but nbtstat -a gets "host not found" - Windows XP Network

6. Pinging Host Names as opposed to pinging FQDNs

"Bryan Blair" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...
> I have 2 Internal DNS Servers (DNS Server A and B) setup.  They both
reside
> in different sites that are connected via a VPN.  DNS Server A has DNS
> Server B's primary zone setup as a secondary zone and vice versa.
> Workstations that reside in opposite sites can ping each other, but only
by
> pinging the FQDN of the corresponding workstation.  Workstations that
reside
> in the same site can ping each other by Host Name and FQDN.  My questions
> is......is it possible to allow workstations in opposite sites to ping
each
> other by Host Name and FQDN?

Yes.  DNS and/or WINS server(s) setup correctly do this
quite easily.

Ok, so both zones are at both sites (Srv A & B each have both)
pinging by name should work just fine IF pinging by number already
works (you did register the names, right?)

Technically it's not a FQDN until you put a DOT. on the END., e.g.,
www.Domain.Com.  <-- DOT there (but lots of people use FQDN
to MEAN a multipart name with several tags ending in a TLD

Host name is not a definitive term, it is commonly just a synonym
for what you are calling a FQDN.

Your machine can ping by just the machine part IF the other machine is in
your machines SAME Domain/Zone OR you add an additional suffix
search list in the NIC properties -- notice this is dependent on being
able to ping by the full name which is dependent on the IP address
working.

Finally, if you wish to use NetBIOS names (like in the Browser)
then you might need WINS -- especially to get the browser to
work across subnets and across domains.

WINS server at each location, local clients use the local WINS
server (clients INCLUDE the WINS server and other servers,
especially DCs), then the two WINS server must be set to
replicate.



7. ping hostname failed while ping IP_Address working Options

8. ping from vxsim to host linux machine

Hi All,

I'm using VxSim and i'm currently using the userland application (the
terminal) to communicate with the VxSim. I'm trying to 'ping" from the
VxSim to the local linux host IP. It fails to connect saying, "no
answer from host". However, Ping from host to the VxSim works perfect.
I can ping the tap0 interface from the VxSim (Sim creates this tap0
interface during launch to communicate with a userland application)

My question is, "How to make the Simulator ping/communicate to the
local host IP (not the loopback interface)? " .


i thought of bridging the tap0 and eth0 interface so that packets from
tap0 goes to eth0 and hence i can ping from sim to host. Is this
correct? but once briding the entire system is hanged!!

Please can you let me know what do i need to check or do i need to add
some bridge to make ping work from vxsim to host.

Thanks in Advance..