LinuxQuestions.org
Visit Jeremy's Blog.
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 07-07-2011, 01:25 PM   #1
Sweyn78
Member
 
Registered: Jul 2011
Location: Watkinsville, GA
Distribution: Arch Linux
Posts: 43

Rep: Reputation: 4
Unhappy Utter inability to connect to internet


Hello! Today is the first day I've ever used Linux. I finished installing Debian 6.0 GNU/Linux at 4:00 this morning. I have a friend who is quite good with Debian Linux (he's been using it for years), but he was unable to help me. Over four hours of searching-around on the internet, typing gibberish into the terminal, etc. has done nothing but frustrate me. Even more frustrating: it worked at 5:00 this morning, before I went to sleep. Does anyone have any advice for me on how to fix this crippling issue?
My NIC is integrated, having come with the computer, and is the RealTek Family Fast Ethernet.
My Ethernet-cord is plugged-in.

Thank you greatly in advance.
~Sweyn78
 
Old 07-07-2011, 01:37 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Simple enough round of sanity checking -- post output from the following:
  • /sbin/ifconfig
  • cat /etc/resolv.conf
  • netstat -rn
 
1 members found this post helpful.
Old 07-07-2011, 05:53 PM   #3
Sweyn78
Member
 
Registered: Jul 2011
Location: Watkinsville, GA
Distribution: Arch Linux
Posts: 43

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by anomie View Post
Simple enough round of sanity checking -- post output from the following:
  • /sbin/ifconfig
  • cat /etc/resolv.conf
  • netstat -rn
Here:
Click image for larger version

Name:	Screenshot-2.jpg
Views:	24
Size:	135.8 KB
ID:	7520
 
Old 07-07-2011, 06:19 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Well, you've got no IPv4 address assigned to eth0, there are no resolvers in /etc/resolv.conf, and you have no default gateway. That's enough to ruin your chances of connecting to the 'net.

It's likely your DHCP server is not leasing you an address, for whatever reason. In fact, you may be able to observe this failure by running dhclient from a terminal (as root).

Double-check your Ethernet cable. Try a new one. Bounce your home router/NAT device, if you're connected to one. Bounce your cable modem, if you're directly connected to that.
 
1 members found this post helpful.
Old 07-07-2011, 06:34 PM   #5
Sweyn78
Member
 
Registered: Jul 2011
Location: Watkinsville, GA
Distribution: Arch Linux
Posts: 43

Original Poster
Rep: Reputation: 4
Nothing happens when I type "dhclient" or "sudo dhclient" into the terminal. :\
The ethernet-cable's plugged firmly into both the router and the back of the computer. As it was just working this morning, I probably don't need a new ethernet-cord (and I don't have any others that are anywhere near long enough to reach my computer, so we have to just assume that the ethernet-cord is in good shape).
I'm not sure what you mean by "Bounce". Do you mean type "192.168.1.1" into a browser, or do you mean to ping the router? If it's the latter, I don't know how on Linux.
 
Old 07-07-2011, 08:42 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,254
Blog Entries: 16

Rep: Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120Reputation: 3120
I think by "bounce," Sweyn78 might mean "cycle" or "restart," but pinging is always a good idea for testing network connectivity.

Here are instructions for setting up a static ip address in Debian:

http://www.debian-administration.org/articles/254

Running the command cat /etc/network/interfaces in a terminal will allow you to see how your networking is currently configured by displaying the contents /etc/network/interfaces in the terminal.

Last edited by frankbell; 07-07-2011 at 08:46 PM.
 
1 members found this post helpful.
Old 07-07-2011, 09:47 PM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by Sweyn78
I'm not sure what you mean by "Bounce". Do you mean type "192.168.1.1" into a browser, or do you mean to ping the router? If it's the latter, I don't know how on Linux.
Power-cycle the router/NAT device. (I see you're on private IP space, so I am assuming you have one.) Afterward, either restart your networking service, or restart your workstation.
 
1 members found this post helpful.
Old 07-07-2011, 11:24 PM   #8
Sweyn78
Member
 
Registered: Jul 2011
Location: Watkinsville, GA
Distribution: Arch Linux
Posts: 43

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by frankbell View Post
I think by "bounce," Sweyn78 might mean "cycle" or "restart," but pinging is always a good idea for testing network connectivity.

Here are instructions for setting up a static ip address in Debian:

http://www.debian-administration.org/articles/254

Running the command cat /etc/network/interfaces in a terminal will allow you to see how your networking is currently configured by displaying the contents /etc/network/interfaces in the terminal.
Thanks. I believe you've just identified the source of the problem. There are obvious errors in the files specified in the guide you linked to, but my computer refuses to let me edit them; they're read-only. How do I change this?

Quote:
Originally Posted by anomie View Post
Power-cycle the router/NAT device. (I see you're on private IP space, so I am assuming you have one.) Afterward, either restart your networking service, or restart your workstation.
That's one of the first things I did.

Last edited by Sweyn78; 07-08-2011 at 12:20 AM. Reason: To acknowledge and respond to the other bit of advice.
 
Old 07-08-2011, 12:38 AM   #9
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
Quote:
There are obvious errors in the files specified in the guide you linked to, but my computer refuses to let me edit them; they're read-only. How do I change this?
You will have to be root to edit the configuration files so use sudo
For eg:

Code:
sudo gedit /etc/network/interfaces
 
1 members found this post helpful.
Old 07-08-2011, 01:19 AM   #10
Sweyn78
Member
 
Registered: Jul 2011
Location: Watkinsville, GA
Distribution: Arch Linux
Posts: 43

Original Poster
Rep: Reputation: 4
I've made the changes to the files in the guide, I've tried to follow the advice of the comments on the guide, and, still, it's just not working.
Things I've noticed:
Nothing but headers appear when I type "netstat -nr".
Resolv.config keeps rewriting itself
 
Old 07-08-2011, 02:21 AM   #11
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,062

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Quote:
Originally Posted by Sweyn78 View Post
Resolv.config keeps rewriting itself
resolv.conf being re-written is quite normal; various things (dhcp, ppp, and probably network manager/wicd) do this when they are active. Usually, there is a comment included in resolv.conf about which service has written its settings there, so posting the file in its overwritten state may be helpful (if you can, please paste directly into your reply, using code tags to surround the pasted portion - it improves readability).

Can you ping your router? You'll have to know the ip address of your router It will almost inevitably be on a private/non-routable ip address; probably 192.168.0.0 or 192.168.0.1.

To try ping, type the following into a terminal

Quote:
ping 192.168.0.1
(which will try to ping for ever control-C to terminate...or

Quote:
ping 192.168.0.1 -c 1
for a single ping; this will still stall, if the target is unavailable, but control-C will bring it to an end).

If you cannot ping the router, you'll find it difficult to make much progress. Any one of the things listed by anomie in post 4 are enough to stop you, but being unable to ping is pretty fundamental and low level, so start there.
 
1 members found this post helpful.
Old 07-08-2011, 02:35 AM   #12
Sweyn78
Member
 
Registered: Jul 2011
Location: Watkinsville, GA
Distribution: Arch Linux
Posts: 43

Original Poster
Rep: Reputation: 4
Our Linksys' IP is 192.168.1.1. I know because I've done port-forwarding and other such things before from this OS and my XP (which I formatted yesterday for Debian).
Whenever it changes that file, it leaves only one line of code, and it's always the same nameserver, which is some combination of 10's and 1's.
I'm about to reboot into Debian to try to ping my router and to try OpenDSN to see if it'll work.
I'll be watching this thread from my Blackberry and I'll post what happens (if anything).

Last edited by Sweyn78; 07-08-2011 at 02:38 AM.
 
Old 07-08-2011, 03:00 AM   #13
Sweyn78
Member
 
Registered: Jul 2011
Location: Watkinsville, GA
Distribution: Arch Linux
Posts: 43

Original Poster
Rep: Reputation: 4
OpenDNS worked!
Thank you all so much for your help! It's nice to have the internet finally, haha.

Last edited by Sweyn78; 07-08-2011 at 03:01 AM. Reason: Sorry for double-posting. :\
 
  


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
Connect my netbook to wireless but it wont connect to the internet but it did . Haydn456MJW Linux - Newbie 7 01-26-2011 05:56 PM
Able to connect to default Gateway, Unable to connect to internet Dumb.Coder Linux - Newbie 11 04-14-2009 04:22 AM
Oinkmaster utter chaos priyadarshan Linux - Software 4 03-30-2009 05:18 AM
Unexplained inability to connect to Internet arubin Linux - Networking 3 12-31-2007 06:49 AM
connect to internet trough wireless others connect to me with lan Amir Menesy Linux - Wireless Networking 1 11-13-2007 08:28 PM


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