LinuxQuestions.org
Help answer threads with 0 replies.
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-05-2004, 07:25 PM   #1
psletten
LQ Newbie
 
Registered: Jan 2004
Location: copenhagen - denmark
Distribution: SuSe
Posts: 9

Rep: Reputation: 0
LAN ftp via ZyXEL-switch starts but halts quickly


I'm trying to get some files transferred to my new SuSe Linux 9.0 from my old SuSe 6.4 via a simple switch. Both computers access internet ftp sites without any glitches (I have downloaded tons of files from the old one, and installed the new one via ftp), but when I try to connect the two of them troubles start. No matter which way I do it (1 -> 2, or 2 -> 1) the connection starts out fine, but very soon after it slows to a crawl and then halts completely.

I have disabled the SuSe-firewall on my new SuSe 9.0 - on the account that the main router does not allow any connections from the outside (stealth mode) - and this allowed me to use ssh between the two machines. I have also tried moving the files with scp, but the same error prevents me from copying large files. Smaller files gets through only because the connection starts out fine, and takes a second or two to drop from some 200+ KB/s to a complete halt.

Now what should I look at? I have tried tcpdump, but it doesn't really enlighten me as to what the problem is about.
 
Old 01-05-2004, 07:34 PM   #2
psletten
LQ Newbie
 
Registered: Jan 2004
Location: copenhagen - denmark
Distribution: SuSe
Posts: 9

Original Poster
Rep: Reputation: 0
I forgot to mention that both machines use DHCP, and the internal IP-numbers are 10.0.0.2, and 10.0.0.4, but I'm unsure whether this has anything to do with my troubles.
 
Old 01-05-2004, 07:45 PM   #3
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
That seems odd.
Did you try to scp them?
 
Old 01-06-2004, 11:31 AM   #4
psletten
LQ Newbie
 
Registered: Jan 2004
Location: copenhagen - denmark
Distribution: SuSe
Posts: 9

Original Poster
Rep: Reputation: 0
Yes I tried both ftp, and scp, and the same thing happens: The connection is succesfull, but the bandwidth quickly falls to a halt. Even if I'm the only one using the 10/100 MBit network switch.

What's even more worrisome (if I have understood anything), is that my 'ifconfig -a' (it shouldn't really matter from which machine) says some 264 collisions only, and that was after many, many trials.

I'm most bewildered, but must admit that I'm not an expert on the tcpwrappers in inetd and xinetd respectively used on the two machines.
 
Old 01-06-2004, 11:35 AM   #5
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
What is the output of
iptables -L -v -n;
from both machines.
 
Old 01-06-2004, 12:10 PM   #6
psletten
LQ Newbie
 
Registered: Jan 2004
Location: copenhagen - denmark
Distribution: SuSe
Posts: 9

Original Poster
Rep: Reputation: 0
Only my new machine uses iptables. When sending via ncftp to the new machine, the respons is:
Chain INPUT (policy ACCEPT 115 packets, 71579 bytes)
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
Chain OUTPUT (policy ACCEPT 121 packets, 8372 bytes)
 
Old 01-06-2004, 01:05 PM   #7
psletten
LQ Newbie
 
Registered: Jan 2004
Location: copenhagen - denmark
Distribution: SuSe
Posts: 9

Original Poster
Rep: Reputation: 0
The trouble must be on the new machine (SuSe 9.0), because scp only accepts connections from the new one to the old one. From old to new the connection is immediately refused.

Is this just some standard SuSe 9.0 security setting I've overlooked perhaps?
 
Old 01-06-2004, 01:12 PM   #8
psletten
LQ Newbie
 
Registered: Jan 2004
Location: copenhagen - denmark
Distribution: SuSe
Posts: 9

Original Poster
Rep: Reputation: 0
When fetching with scp from new to old (in which case the connection is accepted), only 60KB gets across then we're back to a completely stalled connection - "square one again".
 
Old 01-06-2004, 01:12 PM   #9
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
No that just means that sshd is not started.
Run
/etc/initd/sshd start;
This has nothing to do with your original problem though. The only reason I was asking you to try scp was to rule out ftp as the problem. Since it is occurring on both ftp and scp I move to firewalls that might be throtling the connection down to prevent a DOS attack. Since that does not appear to be the problem let more towards datalink level. What is the output of
ifconfig -v;
On both machines.
Do you have a crossover cable?
 
Old 01-06-2004, 01:59 PM   #10
psletten
LQ Newbie
 
Registered: Jan 2004
Location: copenhagen - denmark
Distribution: SuSe
Posts: 9

Original Poster
Rep: Reputation: 0
command 'ifconfig -v' gives:
*OLD SuSe 6.4:*
eth0 Link encap:Ethernet HWaddr 00:00:70:24:60:3C
inet addr:10.0.0.4 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:40714 errors:0 dropped:0 overruns:0 frame:0
TX packets:14506 errors:0 dropped:0 overruns:0 carrier:0
collisions:118 txqueuelen:100
Interrupt:12 Base address:0xfcf0

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

*NEW SuSe 9.0:*
eth0 Link encap:Ethernet HWaddr 00:04:E2:54:BD:82
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::204:e2ff:fe54:bd82/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10763 errors:7 dropped:0 overruns:0 frame:7
TX packets:2018 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4199952 (4.0 Mb) TX bytes:172274 (168.2 Kb)
Interrupt:10 Base address:0x1000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:178 errors:0 dropped:0 overruns:0 frame:0
TX packets:178 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11432 (11.1 Kb) TX bytes:11432 (11.1 Kb)

No I do not own any crossover cable (unfortunately).

Last edited by psletten; 01-06-2004 at 02:01 PM.
 
Old 01-09-2004, 03:52 PM   #11
psletten
LQ Newbie
 
Registered: Jan 2004
Location: copenhagen - denmark
Distribution: SuSe
Posts: 9

Original Poster
Rep: Reputation: 0
I think the source of trouble has been located and fixed: xinetd halts after a few seconds because it tries to start up as user '--default--'. When this value is set to 'root' in the conf. file (/etc/xinetd.d/services) xinetd starts up just fine. This became obvious when pressing "ctrl-alt-f10" for a view of the system logs (btw: can't these log-outputs be seen another way?).

Now if only I could get my old ethernet card up and running (for no apparent reason it has stopped working because the dhclient times out waiting for a valid dhcp-server response) so that I could verify the succes, my weekend would be saved.

Thanks a lot for all Your help. I'll reports back as soon as I know more.

Last edited by psletten; 01-09-2004 at 03:56 PM.
 
Old 01-21-2004, 10:03 AM   #12
psletten
LQ Newbie
 
Registered: Jan 2004
Location: copenhagen - denmark
Distribution: SuSe
Posts: 9

Original Poster
Rep: Reputation: 0
The success has been confirmed. I've installed a new ethernet card on my old computer, and fixed the xinetd startup troubles, and now the connection works just fine.

SUCCESS: Remember to check the sytem log in /var/log/messages

Thanks a lot for all the tips and tricks :-)
 
  


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
Zyxel 1124 Switch overlord73 Linux - Hardware 1 06-09-2005 02:59 AM
Method to scan for wireless networks and quickly switch between them. crozewski Linux - Wireless Networking 1 04-16-2005 11:04 AM
(maybe this question is: how to switch between eth0 & WLAN 'quickly'?) with SuSE 9.1 johnmahan Linux - Wireless Networking 0 08-23-2004 08:05 PM
Linux halts at partition check before installation starts. KiLLaWaBBiT Linux - Hardware 13 08-20-2003 12:26 PM
kernel halts, system halts, computer commits suicide stupid_guy Linux - Newbie 10 06-07-2003 05:44 PM


All times are GMT -5. The time now is 05:24 PM.

Main Menu
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