Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I am connected to the net, but cannot download files...
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
drigz
n00b
n00b


Joined: 12 Sep 2004
Posts: 42

PostPosted: Sun Sep 12, 2004 6:29 pm    Post subject: I am connected to the net, but cannot download files... Reply with quote

I have just installed Gentoo from the LiveCD. I am in a small home network. The LiveCD got the network perfectly, and I could download files and stuff during the install. However, when I rebooted into Gentoo, whilst I am connected to the net (ifconfig gives the right output, I can ping www.google.com successfully) any attempt to download a file (mainly through wget via emerge) fails like this:
Code:
ayro ~ # emerge vim
Calculating dependencies ...done!
>>> emerge (1 of 3) dev-util/ctags-5.5-r1 to /
>>> Downloading http://gentoo.osuosl.org/distfiles/ctags-5.5.tar.gz
--19:28:55--  http://gentoo.osuosl.org/distfiles/ctags-5.5.tar.gz
           => `/usr/portage/distfiles/ctags-5.5.tar.gz'
Resolving gentoo.osuosl.org... 140.211.166.134
Connecting to gentoo.osuosl.org[140.211.166.134]:80... connected.
HTTP request sent, awaiting response...

Where it hangs indefinitely. Here is my ifconfig output:
Code:
ayro ~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:F1:86:78:79
          inet addr:192.168.123.102  Bcast:192.168.123.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:211 errors:0 dropped:0 overruns:0 frame:0
          TX packets:130 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:41966 (40.9 Kb)  TX bytes:13730 (13.4 Kb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  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
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


Thank you very much for any help.

I have previously installed various distro's (Slackware, Debian, Red Hat) on this computer, all of which supported internet out of the box.

If there is anything more I could post that might help, please tell me.
Back to top
View user's profile Send private message
dirtygnuhippie
n00b
n00b


Joined: 09 Jun 2004
Posts: 3

PostPosted: Sun Sep 12, 2004 9:33 pm    Post subject: Network problems Reply with quote

Well, it sounds like you're connected. Is connecting to gentoo.osuosl.org (via emerge) the only connection problem? Can you browse the web or make pop3/smtp connections?

My first guess is there's a problem with gentoo.osuosl.org (a longshot but a good first guess). If you can connect to other sites try changing your GENTOO_MIRRORS in make.conf to something else like (a known working site):


Code:
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/"


Let me know if you can browse the web or make a ftp connection. I'll be able to give you some more guesses with that info. =)

What's your connection to the net? Is it modem, dsl/cable, etc. I noticed that your IP address (192.168.123.102) is nonroutable so can I assume that your connected to a router (most likely a full C class subnet and a router address of 192.168.123.1)?
Back to top
View user's profile Send private message
GenU
n00b
n00b


Joined: 22 Aug 2004
Posts: 10

PostPosted: Sun Sep 12, 2004 11:18 pm    Post subject: Reply with quote

Same problem, all installation is accomplished. But after reboot the computer, I cannot download anything. Who can help me to solve this problem. Thanks a lot.
Back to top
View user's profile Send private message
drigz
n00b
n00b


Joined: 12 Sep 2004
Posts: 42

PostPosted: Mon Sep 13, 2004 10:24 am    Post subject: Reply with quote

I can get to google with lynx, nowhere else. I don't have any ftp tools.
Back to top
View user's profile Send private message
dirtygnuhippie
n00b
n00b


Joined: 09 Jun 2004
Posts: 3

PostPosted: Mon Sep 13, 2004 1:20 pm    Post subject: Questions Reply with quote

drigz wrote:
I can get to google with lynx, nowhere else. I don't have any ftp tools.

What's your network layout? Are you going through a router and what is your connection to the Internet (modem, dsl, etc)? Can you successfully ping both news.google.com and 216.239.39.99? What's in /etc/resolv.conf?

Being able to access google.com via lynx and no where else is weird.
Back to top
View user's profile Send private message
drigz
n00b
n00b


Joined: 12 Sep 2004
Posts: 42

PostPosted: Mon Sep 13, 2004 4:52 pm    Post subject: Reply with quote

New emerge output:
Code:
ayro ~ # emerge bind-tools
Calculating dependencies ...done!
>>> emerge (1 of 1) net-dns/bind-tools-9.2.3-r1 to /
>>> Downloading http://gentoo.mirrors.pair.com/distfiles/bind-9.2.3.tar.gz
--17:49:27--  http://gentoo.mirrors.pair.com/distfiles/bind-9.2.3.tar.gz
           => `/usr/portage/distfiles/bind-9.2.3.tar.gz'
Resolving gentoo.mirrors.pair.com... 216.92.2.140
Connecting to gentoo.mirrors.pair.com[216.92.2.140]:80... connected.
HTTP request sent, awaiting response...


My network layout:
Code:
WWW ->
576k Broadband Line ->
USR9003 Router and Broadband Modem (192.168.1.1)->
USR8054 Switch and Wireless Access Point (192.168.123.254)->
Various computers (inc. 192.168.123.102)


Various commands:
Code:
ayro ~ # ping news.google.com
PING news.google.akadns.net (64.233.161.99) 56(84) bytes of data.
64 bytes from 64.233.161.99: icmp_seq=1 ttl=239 time=102 ms
64 bytes from 64.233.161.99: icmp_seq=2 ttl=239 time=102 ms

--- news.google.akadns.net ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 102.369/102.490/102.611/0.121 ms

ayro ~ # ping 216.239.39.99
PING 216.239.39.99 (216.239.39.99) 56(84) bytes of data.
64 bytes from 216.239.39.99: icmp_seq=1 ttl=238 time=104 ms
64 bytes from 216.239.39.99: icmp_seq=2 ttl=238 time=102 ms

--- 216.239.39.99 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 102.295/103.499/104.704/1.246 ms

ayro ~ # cat /etc/resolv.conf
nameserver 192.168.123.254
Back to top
View user's profile Send private message
drigz
n00b
n00b


Joined: 12 Sep 2004
Posts: 42

PostPosted: Mon Sep 13, 2004 6:04 pm    Post subject: Reply with quote

fixed! got the 2.6.5 kernel instead of the 2.6.8 kernel:
from livecd:
emerge =gentoo-dev-sources-2.6.5

compile as normal (although i followed https://forums.gentoo.org/viewtopic.php?t=49036 for coolness) and install!

and it worked!
Back to top
View user's profile Send private message
GenU
n00b
n00b


Joined: 22 Aug 2004
Posts: 10

PostPosted: Mon Sep 13, 2004 11:08 pm    Post subject: Reply with quote

Did the kernel 2.6.8 cause this problem?
If I change the kernel to the 2.6.5, can I accomplish this problem?
Back to top
View user's profile Send private message
drigz
n00b
n00b


Joined: 12 Sep 2004
Posts: 42

PostPosted: Tue Sep 14, 2004 6:43 pm    Post subject: Reply with quote

You can try - worked for me.
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Tue Sep 14, 2004 7:33 pm    Post subject: Reply with quote

Probably another case of this problem.
Send your thanks to the Kernel Devs ;-)
Back to top
View user's profile Send private message
drigz
n00b
n00b


Joined: 12 Sep 2004
Posts: 42

PostPosted: Tue Sep 14, 2004 7:38 pm    Post subject: Reply with quote

I'm not up for reading all that :) And I'm mildly annoyed that the recent kernels seem to be getting worse, not better (for me) as I've had no problems with <2.6.7 (started at 2.6.5) and plenty with <2.6.6. Kinda like Wine seemed to be doing - everything would only work on non-current versions. It seems better now though.
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Tue Sep 14, 2004 7:49 pm    Post subject: Reply with quote

drigz wrote:
I'm not up for reading all that :) And I'm mildly annoyed that the recent kernels seem to be getting worse, not better (for me) as I've had no problems with <2.6.7 (started at 2.6.5) and plenty with <2.6.6. Kinda like Wine seemed to be doing - everything would only work on non-current versions. It seems better now though.
Then just read this
lwn wrote:
In the mean time, anybody running a current kernel who is having trouble connecting to a needed site can work around the problem with a command like:

echo 0 > /proc/sys/net/ipv4/tcp_default_win_scale

or by adding a line like:

net.ipv4.tcp_default_win_scale = 0

to /etc/sysctl.conf
Back to top
View user's profile Send private message
drigz
n00b
n00b


Joined: 12 Sep 2004
Posts: 42

PostPosted: Tue Sep 14, 2004 8:13 pm    Post subject: Reply with quote

Cool. Although I'm currently happy that I can use ACPI, and don't plan on upgrading my kernel anytime soon.
Back to top
View user's profile Send private message
GenU
n00b
n00b


Joined: 22 Aug 2004
Posts: 10

PostPosted: Tue Sep 14, 2004 11:03 pm    Post subject: Reply with quote

neysx wrote:
drigz wrote:
I'm not up for reading all that :) And I'm mildly annoyed that the recent kernels seem to be getting worse, not better (for me) as I've had no problems with <2.6.7 (started at 2.6.5) and plenty with <2.6.6. Kinda like Wine seemed to be doing - everything would only work on non-current versions. It seems better now though.
Then just read this
lwn wrote:
In the mean time, anybody running a current kernel who is having trouble connecting to a needed site can work around the problem with a command like:

echo 0 > /proc/sys/net/ipv4/tcp_default_win_scale

or by adding a line like:

net.ipv4.tcp_default_win_scale = 0

to /etc/sysctl.conf


Really? Thanks a lot. If I can solve this problem, that's all your help. Thanks again.
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