LinuxQuestions.org
Review your favorite Linux distribution.
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 01-23-2004, 09:56 AM   #1
RTT
Member
 
Registered: Nov 2003
Location: England
Distribution: slackware, FreeBSD
Posts: 33

Rep: Reputation: 15
Slowdown when net connection is not available


Hi people

My network consists of an 8 port combined router & switch, which has 5 windows machines, 2 slackware linux boxes and one WAP (for 2 laptops) connected to it.

My problem is this - when there is no internet connection to the routed WAN port, logging into my linux boxes is dramatically slows down. For example, SSHing or FTPing will take 30 seconds to authenticate me, where as if there is a connection to the internet present it is instantaneous.

Is this perhaps something to do with DNS? The slackware boxes get all the DNS, gateway and IPs given to them from the DHCP server on the router.

Any help much appreciated, even if there is no fix and just an explanation

-Rich
 
Old 01-23-2004, 11:06 AM   #2
palmercabel
Member
 
Registered: Oct 2003
Posts: 64

Rep: Reputation: 15
Rich, I'm curious to see if logging in to both boxes slows down consistently when the internet connections is down. It would also be interesting to see if the slowdown is consistent across all of the machines trying to log in. Is it slow to login from the console of each machine or does it only affect logins over-the-wire ?

Do you have a local DNS server ? If so, does it forward ? It may help to see your resolv.conf, named.conf, and the zone file which contains the A record for the machine(s) you are trying to login to.
 
Old 01-23-2004, 02:19 PM   #3
RTT
Member
 
Registered: Nov 2003
Location: England
Distribution: slackware, FreeBSD
Posts: 33

Original Poster
Rep: Reputation: 15
Hi

It only happens over-the-wire, and is consistent over all the machines, be it from a laptop or workstation.

I don't have a local DNS server. I edit the hosts file in all the machines, both winblows and linux.

resolv.conf is as follows:
Code:
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
search
I thought i'd best explain 'what happens' a bit better too. Say for example i'm logging in via SSH using putty to 'bash (192.168.0.9)' using PuTTY from a windows box.
The window opens instantaneously for the 'login as:' prompt, as does the password prompt, but from then on it takes about maybe 30s to get to a usable prompt. Eg:
Code:
Login as: []
Sent username xxx
xxx@bash's password:
#
# long wait...
#
xxx@bash:~$
FTP is much the same, the machine is found instantly, but the point from authenticated to loading a directory listing takes ~30s. Eg:
Code:
Resolving host name bash...
Connecting to (bash) ->  IP: 192.168.0.9 PORT: 21
Connected to (bash) -> Time = 0ms
Socket connected waiting for login sequence....
Then comes the wait!

Last edited by RTT; 01-23-2004 at 02:25 PM.
 
Old 01-24-2004, 03:26 PM   #4
RTT
Member
 
Registered: Nov 2003
Location: England
Distribution: slackware, FreeBSD
Posts: 33

Original Poster
Rep: Reputation: 15
I fixed the 'problem'. Turns out it was DNS as I thought it was. I was looking through my sshd_config file and saw an option to disable DNS lookups. I deemed this safe to disable since neither of the boxes are accessible from the internet, only from LAN. So now connecting via SSH is nice and quick even when there's no net connection available!

Secondly, FTP. There is no option to disable the same thing in my proftpd.conf file, so instead I added my machine into the /etc/hosts file, which sorted that out Why I hadn't done this before I don't really know!

I guess I could re-enable DNS lookups on SSHD though, cos the entry is now in the hosts file!

I'm probably talking to myself here, but I thought i'd post how I fixed it anyway incase someone has the same problem and tries to search for an answer

-rich
 
  


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
no connection to net Lostin Linux 99 Linux - Newbie 3 11-05-2004 06:22 PM
Internet connection slowdown Dummy-in-Linux Linux - Newbie 2 09-29-2004 12:57 AM
net connection kinshuk_sahaya Linux - Newbie 1 08-22-2003 01:48 AM
linux slowdown when internet connection is down shzshi Linux - Newbie 0 07-14-2003 09:39 AM
idea: sharing net connection, method: iptables..., problem: broken net connection :( danny2055 Linux - Networking 4 06-09-2003 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:41 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
Open Source Consulting | Domain Registration