LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 06-21-2009, 04:25 AM   #1
pgrd
LQ Newbie
 
Registered: Jun 2009
Posts: 4

Rep: Reputation: 0
Question Strange problem with connection between two hosts


Hello,

the problem is as follows:

I have two boxes within local network -
'A' - CentOS
'B' - Debian

they are part of the infrastructure, and all the network settings are made for them to see each other (or so I think).

The problem is:

STEP 1 : I go to 'A' and 'ping B' - no result, all packets are lost.

STEP 2 : I go to 'B' and do 'ping A' - and everything fine, the connection works.

STEP 3 : I go back to 'A' and do again 'ping B' - and this time - everything is ok and the connection works from this direction also.


so, connection 'A->B' works only after successful connection 'B->A', and after some time of inactivity is lost.

May be anyone will be able to explain this... as I've ran out of ideas..

thanks.
 
Old 06-21-2009, 04:50 AM   #2
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
Very strange. If you have the time, I would get a third computer to test. Put CentOS on it and see if the same thing happens. If it does, put Debian on it and try it again. If you still have the problem, try it with Debian to Debian, and CentOS to CentOS to try and narrow down the operating system with the problem.
 
Old 06-21-2009, 05:11 AM   #3
pgrd
LQ Newbie
 
Registered: Jun 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jsteel View Post
Very strange. If you have the time, I would get a third computer to test. Put CentOS on it and see if the same thing happens. If it does, put Debian on it and try it again. If you still have the problem, try it with Debian to Debian, and CentOS to CentOS to try and narrow down the operating system with the problem.

I actually have many boxes on the same network - all CentOS, and no such problems. But it was not I, who configured them, so, I thought may be I missed some configuration... though I searched everywhere already ... - this is networking - not may places to search .. but may be I managed to overlook something...
 
Old 06-21-2009, 05:14 AM   #4
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
So pinging from other CentOS computers to the Debian computer works? Is it just the one CentOS computer with the problem?
 
Old 06-21-2009, 05:27 AM   #5
pgrd
LQ Newbie
 
Registered: Jun 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jsteel View Post
So pinging from other CentOS computers to the Debian computer works? Is it just the one CentOS computer with the problem?
well - it is not that simple .. yes, from other CentOS boxes - the ping works... but - I have several IP ranges used, each of them has its own set of network/gateway/broadcast IP, the CentOS box in question ('A') is in separate rage than Debian and other CentOS boxes, but it has no problems connecting to the CentOs boxes which are in the same range as Debian - it has routes set to be able to see the target range... but for other CentOS it works - for Debian- as I've said above. And, everything is ok with connections CentOS<->Debian within the same IP range.
 
Old 06-21-2009, 05:44 AM   #6
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
pgrd, what are the IP addresses and netmasks of the two computers? And what are their routing tables set to?

Code:
/sbin/ifconfig; /sbin/route
I'm guessing that B's IP address may be on A's local network range, but not the other way around.

Alternatively, it could be a routing problem with IP update information not being refreshed somehow in the Ethernet layer? Are you able to try switching out hubs or switches at all?
 
Old 06-21-2009, 06:22 AM   #7
pgrd
LQ Newbie
 
Registered: Jun 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rjlee View Post
pgrd, what are the IP addresses and netmasks of the two computers? And what are their routing tables set to?

Code:
/sbin/ifconfig; /sbin/route
I'm guessing that B's IP address may be on A's local network range, but not the other way around.

Alternatively, it could be a routing problem with IP update information not being refreshed somehow in the Ethernet layer? Are you able to try switching out hubs or switches at all?
everything is fine with ip configuration and routes, as I'be already mentioned - there are other CentOS boxed in the same range with Debian, and there are no problems connecting to them. I've checked routes and IPs many times already...

About refreshing IPs ... may be ... I'm not able to switch hubs or change any hardware ... but I will look into this .. only - not sure how I can affect this ..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Problem in Internet connection saurabhgupta1403 Linux - Networking 2 08-21-2008 03:31 AM
Strange internet connection problem BaltikaTroika Suse/Novell 1 09-28-2006 11:15 AM
Strange connection problem? 65bones Linux - Networking 1 04-18-2006 09:59 PM
Strange Internet connection problem vmp Linux - Networking 2 07-21-2003 08:29 AM
strange connection problem jamaso Slackware 4 05-08-2002 10:56 AM


All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration