LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-07-2005, 02:50 AM   #1
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Linux used to have internet - now doesn't work?


Hi,

Just this morning, I was looking around LQ on my lovely Ubuntu laptop. My ISP had a small tech problem (again!) and so my router automatically reconnected when the ISP went back up. All my other computers work, i.e the Windows and my Mac (which I am currently posting this from), but even though I can access my router's settings from Ubuntu and ping the router, my Hoary laptop is unable to acces the internet. A "ping google.com" returns "ping: unknown host google.com", and as you could expect, typing the URL into Firefox does absolutely nothing. I find it very strange that my laptop can't connect to the internet, even though it can see my router, but my other computers can. I didn't alter any settings while the ISP was down, so I'm really not sure how this has happened. Any help would be appreciated.

J_K9

P.S I am connected via ethernet to a Linksys router/modem which is connected to an ADSL line, just for those of you who want to know!

Last edited by J_K9; 07-07-2005 at 02:54 AM.
 
Old 07-07-2005, 03:33 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
ping: unknown host google.com
That means you cannot resolve the domain. Possible reasons:
You have the wrong dns settings in /etc/resolv.conf.
Or most likely you have lost your gateway. Check with "route -n" to find out what is your default gateway.
 
Old 07-07-2005, 03:46 AM   #3
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Original Poster
Rep: Reputation: 30
The result of "route -n":
Code:
Kernel IP Routing Table
Destination         Gateway            Genmask                Flags     Metric  Ref  Use  Iface
192.168.1.0        0.0.0.0              255.255.255.0          U        0         0      0    eth1
192.168.1.0        0.0.0.0              255.255.255.0          U        0         0      0    eth0
0.0.0.0               192.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
My router is at 192.168.1.1, my default ethernet (PCMCIA) card is eth1 and the Subnet mask should be 255.255.255.0.

My resolv.conf:
Quote:
nameserver 195.244.192.66
nameserver 195.244.192.6
I'm not really sure about the DNS stuff....is that correct? Thanks,

J_K9
 
Old 07-07-2005, 03:58 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If you are not sure about your nameservers, check with your other boxes that work, or contact your ISP
 
Old 07-07-2005, 04:11 AM   #5
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Original Poster
Rep: Reputation: 30
Cool, but my Windows laptop is on "Obtain DNS address automatically" and I have no idea how to find out my dns on my Mac (because of different filesystem)! Oh, just checked router and it says that the primary DNS server is 195.244.192.66. Any more ideas? Thanks for your help so far!

[edit]
Don't think I mentioned this: I have a DHCP network.

J_K9

|Congrats Bathory on 666 posts |

Last edited by J_K9; 07-07-2005 at 04:22 AM.
 
Old 07-07-2005, 04:46 AM   #6
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
That routing-table doesn't look good, you have same entries for eth0 and eth1. This means some traffic goes out correct way, some traffic goes wrong way.
Now do you have two nic's?
If not, maybe one is 1394/USB - I have noticed Debian-based distros often wants to activate that.
I have broken my Debian, so I can't really check where to change that. I have to do some guessing:
Take a look in /etc/network/interface (or whatever there might be in /etc/network directory, could be /etc/networking/ also)
If you have a nic not used somewhere, put a '#' in front of the line thus disabling it.

Or simply test:
First of all check
# ifconfig
It will show you what network-cards you have configured. Then
# ifdown eth0
Can you connect? Then do
# ifdown eth1
# ifup eth0
Can you connect now?

If you have 2 nic's and mean to use both, you will have to manually edit routing-table. This is not that difficult, but as I assume you don't need it I'll leave it out for now.
Just return with results!
 
Old 07-07-2005, 05:12 AM   #7
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Original Poster
Rep: Reputation: 30
Hi,

Sorry for not explaining myself properly before! I have two NICs: the first one (inbuilt) is eth0 - this one is broken, physically broken, for an unknown reason- and eth1 is a PCMCIA NIC which I have plugged into my laptop (a Netgear FA511 to be precise).

Thank you Pingu!!!! THANK YOU! "sudo ifdown eth0" made it work immediately! Thank you very much. I guess eth0 was interfering with eth1 somehow, or maybe Ubuntu just "got confused" . Thanks for helping me fix it though!

edit: In order to stop this happening when I next reboot, should I disable eth0 in /etc/network/interface? Thanks,

J_K9

Last edited by J_K9; 07-07-2005 at 05:14 AM.
 
Old 07-07-2005, 05:22 AM   #8
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Glad it helped!

I don't know if you have to remove that line manually or not, maybe just wait and see.
I guess what happened was that when ISP went down, ubuntu tried to find some other way out, therefore enbled eth0.
 
Old 07-07-2005, 05:39 AM   #9
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Original Poster
Rep: Reputation: 30
Yep, thanks for everything! Except that I kinda have another problem now! lol. It's got nothing to do with anything I've done in this thread, it's just something with Samba I want to fix...Thanks,

J_K9
 
  


Reply



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 do you configure linux 10.1 to get the internet to work? jdchvacr Linux - Wireless Networking 3 01-08-2005 07:56 PM
Converted to linux; internet doesn't work The Patbon Mandriva 8 11-30-2004 02:42 PM
Will my router work so i can get on the internet with linux fracturedsage Linux - Newbie 1 06-21-2004 11:47 PM
does comcast cable internet work on linux keeknspin Linux - Newbie 2 12-31-2003 05:22 AM
Internet Telephony Does Not Work IN Linux bongski55 Slackware 0 08-07-2003 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:27 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
Open Source Consulting | Domain Registration