LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-29-2005, 04:39 PM   #1
ruslan40321
LQ Newbie
 
Registered: Mar 2005
Location: New York
Distribution: Gentoo
Posts: 8

Rep: Reputation: 0
Unhappy Linux can't connect to internet with DHCP through Linksys wired router


Please help me on this. I have been using Linux for two years and I never came across this problem. It happened about 6 months ago when my family changed their Netgear router to a Linksys router. I have been trying to fix this problem since then. I have tried EVERYTHING!

There are 4 PCs connected, all with Windows except mine. All the windows pcs connect perfectly, except mine. So far I only got access to a Gentoo Live CD because I have just bought a brand new computer so I can't install any utilities. The problem is that my Linux dhcpcd detects everything correctly, but when I try to ping something like yahoo.com or google or msn.com it doesnt work. My router IP is 10.10.10.0 (or 1). My Linux detects everything but I cant connect. Here are outputs of some commands which may aid you in helping me:

ifconfig:
eth0 Link encap:Ethernet HWaddr 00:11:5B:61:63:CC
inet addr:10.10.10.101 Bcast:10.10.10.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9017 (8.8 Kb) TX bytes:2583 (2.5 Kb)
Interrupt:10 Base address:0xc000

(Theres also the lo interface but i dont think it is needed)

output of cat /etc/resolv.conf
nameserver 206.173.119.72
nameserver 207.155.184.72
nameserver 207.69.188.185
search earthlink.net

route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.10.0 * 255.255.255.0 U 0 0 0 eth0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default 10.10.10.1 0.0.0.0 UG 0 0 0 eth0

arp:
Address HWtype HWaddress Flags Mask Iface
10.10.10.1 ether 00:04:5A:28:93:41 C eth0


I can successfully ping my router, broadcast ping my router, and I can even successfully ping all the nameservers. However, when trying to ping something else, even earthlink.net, it doesn't work. Please help me on this!
 
Old 03-29-2005, 04:53 PM   #2
Jenny81
LQ Newbie
 
Registered: Mar 2005
Distribution: Slackware 10
Posts: 10

Rep: Reputation: 0
Hi ruslan40321, this is basic but it might work, I had a similar probelm when sharing my internet conection, now this is the question, can you ping the other computers in your network? like ping 192.168.0.3 or something like that? if you can that means that you are online, then make sure that you have lisa or rlisa running, and then try it, I know this is basic and maybe you tried it already, I just thought I would tell you in case you did not try it. I hope it works.
 
Old 03-29-2005, 09:20 PM   #3
ruslan40321
LQ Newbie
 
Registered: Mar 2005
Location: New York
Distribution: Gentoo
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Jenny81
Hi ruslan40321, this is basic but it might work, I had a similar probelm when sharing my internet conection, now this is the question, can you ping the other computers in your network? like ping 192.168.0.3 or something like that? if you can that means that you are online, then make sure that you have lisa or rlisa running, and then try it, I know this is basic and maybe you tried it already, I just thought I would tell you in case you did not try it. I hope it works.
Well I know that I am online because I can ping the router and the nameservers... As for lisa,, I have read about it and I dont think I need it because I am not trying to build a network, I just need to connect to the internet (so i can at least install my system). Even if I wanted to, I couldnt try it because my live CD doesnt include lisa or rlisa. Thanks anyway though...
 
Old 03-29-2005, 09:47 PM   #4
aznluvsmc
Member
 
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184

Rep: Reputation: 30
Can you ping yahoo.com or google.com by IP address? Run nslookup and type server to see which nameserver is actually being queried.
 
Old 03-29-2005, 10:15 PM   #5
ruslan40321
LQ Newbie
 
Registered: Mar 2005
Location: New York
Distribution: Gentoo
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by aznluvsmc
Can you ping yahoo.com or google.com by IP address? Run nslookup and type server to see which nameserver is actually being queried.
I found out the IP address of yahoo on a windows machine and tried pinging it from Linux. It doesnt seem to work, however, it doesnt give me an uknown host error. It just sends packets and doesnt get them back. Packet loss: 100%. I dont have nslookup on the Live CD. Pinging server.earthlink.net didnt work either. Pinging the nameservers themselves however, does work.
 
Old 03-29-2005, 11:02 PM   #6
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
Are there enough leases set in the router? I had a buddy that went without for more than two weeks trying to add two comps. to his network and the dhcp on the router was set to only two IP's.
 
Old 03-30-2005, 10:09 AM   #7
aznluvsmc
Member
 
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184

Rep: Reputation: 30
Ok, make sure you have the latest firmware installed for the Linksys router. If you already do, try a hard reset and re-configure the router.
 
Old 03-30-2005, 02:06 PM   #8
maheshb1
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Accessing outside world slow from latest version of M.Linux

I am almost facing a similar problem. I am up to date on Mandrake Linux distribution (using urpmi to
download all the latest packages and even the kernel rpms). For some reason, it takes a long
time to connect to any internet site. It takes almost about 4 or 5 minutes to refresh a web page
(say cnn.com).

At home, I use a Airlink wireless router, which in turn connects to the cable modem. The IP I
get for my Linux desktop is a local one issued by the wireless router (with DHCP).
When I ping cnn.com or any other site, it resolves the name very quikclybut later
takes time to get packets from the site. Resolver is not the issue here. nslookup also
queries and gets the IP addresses fast. I used strace to find out where the bottleneck is
when ping is done. It opens a socket, sets options, uses send and when it calls
recvfrom or poll (on a fd), it times out. I have tried this with many other
sites. Ping to the rotuer's IP is fine.

I have dual-boot on my desktop and when I boot to Windows, it works great.
Any idea(s) on what can be done? I have already changed nsswitch.conf to
use only files and dns (for hosts).

Thanks,
Mahesh
 
Old 08-01-2007, 10:52 PM   #9
des2651
LQ Newbie
 
Registered: Aug 2007
Posts: 1

Rep: Reputation: 0
I ran into an issue with similar symptoms. What I found *may* be helpful to you.

I am running fc 6 for 64 bit processor on a machine with a K8S-MX motherboard and AMD 3400 64-bit processor. My router is a Linksys BEFSR11 v 2.

Packets were coming in at a trickle with this machine, while the other boxes on my LAN had excellent connectivity.

In my case it was an MTU issue. Running pings to a public IP with different sized packets revealed the problem. I had previouslyheard about linksys MTU issues from one of their tech support guys.

Typical ethernet sized packets:

[root@dyna ~]# ping -s 1500 198.111.176.4
PING 198.111.176.4 (198.111.176.4) 1500(1528) bytes of data.

--- 198.111.176.4 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2001ms

Smaller packets:

[root@dyna ~]# ping -s 1450 198.111.176.4
PING 198.111.176.4 (198.111.176.4) 1450(1478) bytes of data.
1458 bytes from 198.111.176.4: icmp_seq=1 ttl=245 time=24.7 ms
1458 bytes from 198.111.176.4: icmp_seq=2 ttl=245 time=22.2 ms
1458 bytes from 198.111.176.4: icmp_seq=3 ttl=245 time=24.1 ms
1458 bytes from 198.111.176.4: icmp_seq=4 ttl=245 time=23.3 ms


I manually set the MTU for my NIC and the problem cleared

ifconfig eth0 mtu 1458

My download speeds are now ~ 1 Mbps.

I don't know how to set the MTU as part of the startup process but am sure some Linux gurus that can answer that piece.

For testing I would suggest sticking with the DNS servers that you have already pinged successfully. Many providers block pings to their servers.

Hope this proves helpful.

Dwight
 
Old 03-30-2008, 02:08 PM   #10
Gillibiabtiag
LQ Newbie
 
Registered: Mar 2004
Posts: 23

Rep: Reputation: 15
A possible solution

Well, I had almost exactly the same problem, and managed to solve it.

The situation, much like yours, was that I had a linksys router (BEFSR41) that I couldn't connect to the internet through with gentoo. I dual-boot with XP, and XP could see the internet just fine; only gentoo was having a problem. The solution that worked for me was to emerge dhcpcd with USE=vfam. I believe that the same effect could be had by running dhcpcd -I, but I can't speak to that.

Anyway, I realize that you posted this well nigh-on three years ago, but hopefully someone will benefit from this post.
 
  


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
How to get computer and wired Linksys BEFSR41 router to work and play well together ginnytwo Linux - Newbie 6 03-08-2006 01:40 PM
Setting up router (Linksys WRT54G v5) to connect to internet (SUSE 9.3) Jongi Linux - Networking 2 11-15-2005 01:33 PM
Non-DHCP connect on a Linksys WRT54G router Zyk Linux - Wireless Networking 1 07-11-2005 05:13 PM
internet via dhcp from a linksys router GeNeSISSIE Linux - Networking 6 11-24-2004 08:36 AM
Linksys router lets Linux connect, but not windows Fear58 Linux - Networking 2 07-15-2004 11:24 PM


All times are GMT -5. The time now is 07:43 AM.

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