Link to home
Start Free TrialLog in
Avatar of Books
Books

asked on

Slow login to RetHat 6.2 on a LAN

I have two RedHat 6.2 Linux machines on a local network (IPs in the 192.168.0.* range).
I'm having trouble in connecting to either machine: Whenever initializing connection (from another computer on the local network) either by FTP or telnet, it takes several minutes until I get response (e,g, login prompt). Once I login however the connection is fast and flawless.
It is ridiculous because I have similar machines hosted outside and it is faster logging to them by modem than logging to the internal machines on the LAN!

What can be the problem? Ask me if you need further info.
Avatar of MFCRich
MFCRich

This sounds like a DNS problem. I am guessing that when you are connected by modem you are using your ISPs DNS service which of course does not have entries for your 192.168.0.* machines.

Edit the '/etc/hosts' file on all the 192.168.0.* machines to look like this:

127.0.0.1   localhost.localdomain localhost
192.168.0.1 host1
192.168.0.2 host2
...etc

host1 and host2 are the names you've given to the machines. You could make this file on one machine and then copy it to all the others since it should be identical on all machines.

And the make sure '/etc/host.conf' has "order hosts,bind" at the beggining.

Post any questions
Bingo, I agree with MFC.
Avatar of Books

ASKER

Ok, the situation is now like this:

The linux server named "Serv1" on IP 192.168.0.23 has this hosts file:
127.0.0.1       localhost       localhost.localdomain
192.168.0.23    Serv1

(host.conf is configured as you mentioned)

The windows machine from which i'm tring to telnet (using TeraTerm) has this hosts file:
127.0.0.1     localhost
192.168.0.23     Serv1

Still initializing a connection is very slow.

Maybe I need to defined a name for the windows machine and
put that name in Serv1 hosts file?
Setting up DNS with properly configured forward and reverse zone information may help...
Have you tried connecting via IP rather than name? Is this just as slow?
Putting the ip address of the client in /etc/hosts of the server will solve the problem.

The delay is caused by the server doing a reverse lookup of the ip number of the client before continuing.

This is the same information other has provided, I am just trying to clarity things.
Avatar of Books

ASKER

I have put the ip address of the client in the /etc/hosts of the server. And indeed connecting by telnet is fast.

However ftp is still slow as ever.

Is there something special that needs to be done for the ftp? ftp daemon is wu-ftp.

 
ASKER CERTIFIED SOLUTION
Avatar of svindler
svindler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Books

ASKER

svindler claims his/her answer only repeated what other have said. But his/her answer was the best - in plain language - only after reading it I knew exactly what to do.

Thanks.