LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2006, 01:16 AM   #1
cmj_21
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Rep: Reputation: 0
Internet not working


I've looked around quite a bit and can't find anyone that has experienced this problem.

I just installed Ubuntu 6.10 on a Dell Inspiron 6000 notebook and everything was working fine, I could use Firefox to browse the internet, add programs, etc. My problems started after I put my laptop into hibernate last night and when I went to use it this morning, no internet sites will load.

I am using ADSL through a Linksys BEFSR41 router, there is no PPPOE. Connection is DSL modem, cat5 to router, cat5 to laptop. I can ping my router as well as log into it through firefox and I am getting a real ip address though DHCP. I cannot ping any internet sites though. There are two other computers using WinXP and Win2000 that work fine as well as the Ubuntu laptop that is dual booting with XP and connects to the internet without changing any settings. There is also a wireless network within range that I can do the same thing with as my wired connection, ping router, but no connection to outside sites.

Everything I've read has not helped at all for getting my internet connection to work. I have also tried to reinstall Ubuntu, but this does not change anything and I am still stuck being able to see my router and not connect to the internet. Any suggestions would be great.

Last edited by cmj_21; 12-26-2006 at 01:22 AM.
 
Old 12-26-2006, 01:34 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Can you ping a site on the Internet by IP as opposed to name, try "ping 64.233.161.99" (this is what www.google.com resolves for me at the moment. If you get a reply back, then your connection is OK but your DNS is not configured. You'll need to add your DNS servers to /etc/resolv.conf. If the ping doesn't work most likely your default gateway isn't set. Do a "netstat -rn" and see if your default route is set to go through your router.
 
Old 12-26-2006, 01:43 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
One possibility is that your DSL lease expired in the interim and you need to restart dhclient.

Coming out of hibernation, it's possible for a device not to have recovered into the state it was in before you went into hibernation.

If you have both an internet and wireless network interace, make sure that both aren't active it they are on the same subnet.

Check what ifconfig, route ( OK, the netstat command does the same thing ) say and cat out resolv.conf.

Given that you can ping the router, if it doesn't take a long time, it doesn't sound like the first three items are a problem. Checking ifconfig, route, resolv.conf will usually point you in the right direction.

Last edited by jschiwal; 12-26-2006 at 01:51 AM.
 
Old 12-26-2006, 02:08 PM   #4
cmj_21
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Original Poster
Rep: Reputation: 0
@ btmiller: no, I cannot ping by IP either. Here is the result from running netstat. My wired connection is on eth0 and my wireless is on eth1. I had to change the router IP address as it had problems when it was set to 192.168.x.x due to the ISP using the 192.168.x.x. My external IP address when I check (from windows computers using the same router) is in in the 64.118.x.x range

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
123.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 123.168.1.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
 
Old 12-27-2006, 06:36 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
It looks like you have two default gateway entries.
Code:
0.0.0.0 123.168.1.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
There should be only one.
 
Old 12-28-2006, 01:25 AM   #6
cmj_21
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Even if you have two different routers they should have the same default gateway? The router I was using was on my eth0 connection with the 123.168

There was a wireless router at another house that I could see, and if I connected to it, I still would get no internet, but could ping it as well.

Thanks for the replies, it works now that I am on a different network. Just have to keep windows for when I am using that network in the future.
 
Old 12-28-2006, 05:32 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Quote:
Even if you have two different routers they should have the same default gateway?
Your computer should have one default gateway.
You also need the nameserver address to be able to browse the internet normally. You can check that with "cat /etc/resolv.conf".
Also, unless you are using your computer as a transparent gateway (this is rare) or have it configured for load sharing, if you have two interfaces, they should be on different subnets. You can shut one down that you aren't using if you want to use wireless at times and the wired NIC on other times.

Last edited by jschiwal; 12-28-2006 at 05:38 AM.
 
  


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
Internet not working, network working Vossy Linux - Networking 3 12-20-2005 06:20 PM
internet is not working oldi Slackware 18 05-14-2004 07:52 PM
Internet is not working NEED HELP!! Vectrox Slackware 8 04-20-2004 08:43 AM
Internet not working. stillme Linux - Networking 10 04-11-2004 04:59 PM
Internet working, network not working... phoenix07 Fedora 1 04-11-2004 03:30 AM


All times are GMT -5. The time now is 10:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration