LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 11-11-2005, 03:13 PM   #1
chri5
LQ Newbie
 
Registered: Nov 2003
Posts: 22

Rep: Reputation: 15
Connected to router but not the internet?


Hi,
Strange problem, I'm trying to use my wireless laptop to connect to the inteRnet with ubuntu 5.10.

I've got my wireless card working with ndiswrapper etc and it's getting the correct IP information back from my DHCP router. I can even log into to my router from ubuntu but I can't get out to the internet?
Any ideas?
Cheers,
Chris.
 
Old 11-11-2005, 03:20 PM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Are you running wep, which can sometimes cause issues? Also, is your default gateway correctly set? Type "route" from a console and it should display an entry for your default gateway. If not, set it as such (assumming your router is 192.168.1.1 netmask 255.255.255.0):
Code:
route add default gw 192.168.1.1 netmask 255.255.255.0
. Then try pinging an website on the Internet. If that fails, try adding the default gateway again, but without the "netmask 255.255.255.0" at the end.
 
Old 11-11-2005, 03:22 PM   #3
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Rep: Reputation: 15
when you can establish a connection between your laptop and your router, it think everything between those 2 is fine...

Is it possible to check your router with a webinterface? Check there if you have a connection with the internet.... did you get an external ip from your ISP? Everything could be fine on your local network, when you didn't get an external ip, it will not be possible to connect to the outside. Did you try a ping to a website?

Did you give the correct DNS-servers with your router? When your client don't find a correct DNS-server, it will not be possible to resolve the correct ip-adres from a given url. And on the internet, everything works with ip-adresses. URL are only made to make it readable (easy)...
 
Old 11-11-2005, 03:40 PM   #4
chri5
LQ Newbie
 
Registered: Nov 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the quick replies; but still no joy!

I can login to my router from ubuntu and I can ping websites on the internet but firefox doesn't connect.

I've disabled WEP and made sure my gateway & mask are correct.

Any more ideas??
 
Old 11-11-2005, 04:43 PM   #5
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Okay, so if you're able to ping websites from your computer based on domain names such as www.google.com, then it must simply be the connection settings within Firefox. Go into Preferences | Connection Settings and check it's trying to connect through an incorrect default gateway. Setting it to automatically detecting settings should work, or even direct connection since you have your routing table already setup.
 
Old 11-11-2005, 05:00 PM   #6
chri5
LQ Newbie
 
Registered: Nov 2003
Posts: 22

Original Poster
Rep: Reputation: 15
This just isn't making sense. I can ping www.google.com com from the terminal; I get 0 packet loss 100% success. This must mean Ubuntu is getting the correct IP info.

But firefox wont get me on the net. Tried auto & direct in connection settings.
It just times out after about 2 minutes.

???
 
Old 11-12-2005, 06:36 AM   #7
daniela
Member
 
Registered: Aug 2003
Location: Zürich, Switzerland
Distribution: debian sarge
Posts: 41

Rep: Reputation: 15
sorry for breaking into your thread...i just thought it wouldn't make sense to open a new one since my problem is very similar to yours...

the only difference is that i can't ping anything on the internet. but i'm able to connect to the router's webinterface & every single computer/laptop on the wlan is able to surf the internet. i can't ping neither an ip nor a hostname outside.
when i try to ping my isp's dns-server i get "connect: network unreachable" & trying to ping google results in "unknown host". (resolv.conf shows the right dns-server, though)

i'm using a thinkpad t43p with debian & an atheros chipset built-in wlan card. thus using the madwifi-driver.
 
Old 11-12-2005, 03:36 PM   #8
chri5
LQ Newbie
 
Registered: Nov 2003
Posts: 22

Original Poster
Rep: Reputation: 15
After many hours I got there. Ubuntu didn't remember what I told it after rebooting as well as a router config out of place that sent me round in circles!

I've decided to stick windows back on for now.
 
Old 11-13-2005, 05:29 AM   #9
daniela
Member
 
Registered: Aug 2003
Location: Zürich, Switzerland
Distribution: debian sarge
Posts: 41

Rep: Reputation: 15
i'm glad to hear that you got to know your problem (& less glad that you stick windows back on)

well i'm still stuck with my thinkpad. so i'd appreciate any comment on this...
 
  


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
who is connected to my wifi router? pedro_nf Linux - Wireless Networking 27 05-10-2014 09:39 PM
Linksys BEFSR81 connected to Linux Router? fleshwound Linux - Networking 1 11-30-2005 09:22 AM
printing with CUPS to printer connected to router fatblueduck Linux - Networking 0 10-07-2005 06:18 PM
Connected, but can't see router, internet dudboi Linux - Networking 4 08-17-2004 03:02 AM
Limit connected items connected to my router andersh3 Linux - Newbie 1 03-16-2004 11:10 AM


All times are GMT -5. The time now is 10:37 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