View Single Post

  #2 (permalink)  
Old 01-30-2004
Cameron Kerr
 
Posts: n/a
Default Re: SSH - slowly (or not at all) connects [a little long]

Robert B. <rpbyc@nospam.op.pl> wrote:
> Hi,
>
> I have a small network with 4 Linux machines. Every machine has 2 NIC's.
> The first NIC's are configured for an internal network (192.168.1.0), the
> second - for an external (say, 1.2.3.0).


What is the reason for all this dual-homing? Is is some kind of research
network, or cluster?

> Every machine is running an sshd. Sometimes, when I want to connect from
> one machine to another by ssh, I get "Connection timed out".


Are you specify a hostname or IP address when you try to connect?

It seems to me that this happens when there are two (or more) machines
responding to the same IP address, and therefore you have a MAC
resolution race condition.

> But then, If I just send, say 3 pings to the machine and try to ssh to
> it again, it succeeds!


Have a look on each machine (locally!) at the output of "arp -n" (will
be in /usr/sbin or /sbin).

> Every linux was installed on one machine, and then the HDD was put
> into appriopriate other machine, so after the installation, when the
> network services were going down, there was a message about problems
> with MAC address.


Are you saying that you cloned each machine?

What process did you use to achieve that?

Are the IP addresses of the machines unique?

> But I think I repaired that, using MAC address got from the arp
> command to put them into /etc/sysconfig/network-scripts/ifcfg-ethX.
> Maybe it was not the good solution?


You should not (ever, generally) specify a different MAC address (they
are supposed to be unique).

> Here are the /etc/hosts files:


Is there a DNS server it might also be querying?

--
Cameron Kerr
cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/
Empowered by Perl!
Reply With Quote