Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange network (scp/sftp) problem. [partly solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ddlucas_jp
n00b
n00b


Joined: 02 Jun 2004
Posts: 6

PostPosted: Tue Jun 15, 2004 12:42 am    Post subject: Strange network (scp/sftp) problem. [partly solved] Reply with quote

I have Gentoo-2.6.5-r1 running on a R50 Centrino Thinkpad laptop. Everything is working great except for a couple of networking issues.

Here's the deal.

* At home (dhcp through ADSL) -- I can connect to other systems using my web browser and ssh. I can also transfer files to/from other computers using scp and sftp.

* At work (static IP behind a firewall) -- I can connect to local and remote computers using web browsers, telnet, and ssh.

* At work -- I can transfer only SMALL files to/from local and remote computers using scp and sftp. If I try large files (>1MB), then scp and sftp stall.


The only changes I make between home and work are commenting and uncommenting 'iface_eth0=dhcp' in my /etc/conf.d/net file.


It can't be a network card issue because things are okay at home.

Also, it can't be a firewall issue because at work I cannot transfer files to/from another system behind the firewall.

All of my settings in /etc/conf.d/net are standard, as compared to other people running linux at work.


I'm at a loss here. Anyone have any ideas??


Last edited by ddlucas_jp on Thu Jun 17, 2004 5:27 am; edited 1 time in total
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Tue Jun 15, 2004 7:21 am    Post subject: Reply with quote

It could be a compatability between your network card and the hubs/switches you use at work.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Tue Jun 15, 2004 9:15 am    Post subject: Reply with quote

Hi!

Sounds to be most probably an issue with auto negotiation, especially the duplex settings.

mii-tool and/or ethtool might help here.

HTH
T.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
ddlucas_jp
n00b
n00b


Joined: 02 Jun 2004
Posts: 6

PostPosted: Tue Jun 15, 2004 9:52 am    Post subject: More info. Reply with quote

Thanks for the feedback.

Here's my ethernet card from lspci:

Intel Corp. 82801BD PRO/100 VE (MOB) Ethernet Controller (rev 81)


I'm using the e100 driver for this card. I currently have it loaded as a module with the following options in my modules.autoload.d:

e100 ucode=1 flow_control=1 e100_speed_duplex=0


dmesg shows the following output:

e100: no version magic, tainting kernel.
Intel(R) PRO/100 Network Driver - version 2.3.40
Copyright (c) 2004 Intel Corporation

e100: Using specified speed/duplex mode of 0
e100: Using specified ucode value of 1
e100: Using specified flow control value of 1
e100: selftest OK.
e100: eth0: Intel(R) PRO/100 Network Connection


At work, I've tried various combinations of the options for e100, including forced speed and duplex values, and I still have the same 'scp stalled' problem. Also, I was careful to set flow_control=0 when e100_speed_duplex > 0.
Back to top
View user's profile Send private message
ddlucas_jp
n00b
n00b


Joined: 02 Jun 2004
Posts: 6

PostPosted: Wed Jun 16, 2004 1:06 am    Post subject: Help please, scp/sftp problem not yet solved... Reply with quote

Thanks again for the tips.

I found ethtool to be a very helpful and efficient tool. I was able to try a variety of different settings very quickly.

I focused on the speed/duplex and Tx/Rx settings. I also change the 'maximum transfer unit' (MTU) setting in ifconfig from 1500 to 576.

The intial scp transfer rates changed between the various cases, but scp always stalled and failed when transfering between two computers at work.


Does anyone have any other helpful tips?
Back to top
View user's profile Send private message
jftuga
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2004
Posts: 139
Location: Athens, GA

PostPosted: Wed Jun 16, 2004 3:25 am    Post subject: Reply with quote

You could try setting up ftp, rsync, or wget+apache to see if the problem is specifically with sftp/scp or a more general problem.

Or better yet, you can also try the netcat program (nc). Think of it as a network version of cat. You netcat a file across the network. It is a very easy tool to test with.

-John[[/url]
Back to top
View user's profile Send private message
ddlucas_jp
n00b
n00b


Joined: 02 Jun 2004
Posts: 6

PostPosted: Thu Jun 17, 2004 5:49 am    Post subject: Partly Solved. Reply with quote

On a whim, I plugged in an old pcmcia linksys ethernet card into my brand-spanking-new laptop using the NE2000 (pcnet_cs) driver. I can now upload and download files at work and home.

This also solved a printing problem that I posted awhile back.

(see 'CUPS Printing Problem' posting about 'unable to send trailing nul to printer').



At work, however, scp still stalls out, though ftp works fine. I can live with this for now, but would like to get to the bottom of this.

It's strange that the Intel card works fine at home, but not at work.
Back to top
View user's profile Send private message
embobo
Guru
Guru


Joined: 19 May 2003
Posts: 311

PostPosted: Thu Jun 17, 2004 9:05 am    Post subject: Reply with quote

Think4UrS11 wrote:
Hi!

Sounds to be most probably an issue with auto negotiation, especially the duplex settings.

mii-tool and/or ethtool might help here.

HTH
T.


Yeah I think it is a problem with the switch you're connected to at work.

You try could adding a -v (or 3) to the scp to get more info about what scp thinks is going on.

Is the e100 a binary-only driver? I noticed your kernel is tainted. If your card is supported, I'd try the eepro100 driver.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum