LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-27-2011, 01:00 PM   #1
hassaan
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Rep: Reputation: 0
Internet connection problem with ubuntu server


Hi, im new to ubuntu. im havin a weird problem connecting to the internet.
When the ethernet cable is plugged in, it doesnt work. I have to unplug the cable, refresh the page and let it wait for the connection, after a second or two, i plug it back in, and it works. this works only for that page, which means only that page loads.. if i try to open another site or smthing else, it doesnt work and i have to repeat the exercise for the new site..i have to unplug, refresh and let it wait for connection and plug it back in.. The same thing happens if i try to download an application.. i have to first issue the command to download, and when it says "connecting to blah blah.." i plug the cable back in and it starts downloading, it doesnt work if the cable is already plugged it..!
i tried to search it on the net but seems like no ones having this weird problem..
thanks
 
Old 01-27-2011, 01:45 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
With your ethernet cable plugged in does the Network Manager change? Can you open Applications > Accessories > Terminal and type the following commands.

Code:
sudo ifconfig
Does it have an IP address?
 
Old 01-27-2011, 01:56 PM   #3
hassaan
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sag47 View Post
With your ethernet cable plugged in does the Network Manager change? Can you open Applications > Accessories > Terminal and type the following commands.

Code:
sudo ifconfig
Does it have an IP address?
yes i just did that..
its:
eth0
inet addr: 192.168.1.143 Bcast: 192.168.1.255
 
Old 01-27-2011, 01:58 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
ping 127.0.0.1 to make sure your network card is okay. Also ping an internet address like Google.com. Do they ping?
 
Old 01-27-2011, 02:07 PM   #5
hassaan
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sag47 View Post
ping 127.0.0.1 to make sure your network card is okay. Also ping an internet address like Google.com. Do they ping?
it pings 127.0.0.1 successfully, but not google.com or any other internet site. i removed the ethernet cable and issued the ping command with Google.com, 2-3 secs after hitting 'Enter' i plugged the cable back in, and it started pinging.
when the cable is already plugged in, it doesnt work.. :S
 
Old 01-27-2011, 02:16 PM   #6
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Does it continue to work after pinging or only a limited time after you plug back in the ethernet cable?

Can you tell us what networking device you have?

Code:
lspci | grep [Ee]th

Last edited by sag47; 01-27-2011 at 02:17 PM.
 
Old 01-27-2011, 02:28 PM   #7
hassaan
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sag47 View Post
Does it continue to work after pinging or only a limited time after you plug back in the ethernet cable?

Can you tell us what networking device you have?

Code:
lspci | grep [Ee]th
It continues to work, but only for that site, not any other. if i try pinging another site, it doesnt work, and ill have to do the same exercise(Unplug, issue ping command, plug back in) again.
Yes, heres the result:
00:19.0 Ethernet controller: Intel Corporation 82566DC Gigabit Network Connection (rev02)
 
Old 01-27-2011, 02:53 PM   #8
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
After some searching around I've found that networking for that card either works or it doesn't (not very reliable). However there seems to be a guy with an 82566DC Ether which followed this tutorial on redoing the driver and seems to have worked (look at the last post on the first page and all consecutive posts from the same user).

There's a lot of good Linux networking information in that thread so you should read the entire thing. I did and learned some stuff.

Although that thread is geared towards Ubuntu 7.04. So I'm sure the recent versions of Ubuntu have shipped with the appropriate version of e1000 module.

Last edited by sag47; 01-27-2011 at 03:00 PM.
 
Old 01-31-2011, 10:48 AM   #9
hassaan
LQ Newbie
 
Registered: Jan 2011
Posts: 5

Original Poster
Rep: Reputation: 0
thanks, i also had the same idea, that there was some issue with the network card.. so i installed another card(realtek) which i already had with me.. the same thing happened with that one too... :S
 
Old 01-31-2011, 01:36 PM   #10
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
What is in /etc/resolv.conf? And does the first of those nameservers exist and is reachable, or is it just the second of them that works?

(I'm assuming that you don't have local caching of name look-ups.) And what does 'dig' say about a look-up that works and one that doesn't?
 
  


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
Ubuntu internet connection problem cubbuk Ubuntu 15 02-14-2011 05:51 PM
ubuntu 9.10 problem with internet connection mallikvanga Linux - Newbie 1 11-12-2009 04:00 AM
Ubuntu Server and Fedora 8, neither find my internet connection via my AN35N Ultra. mtlhd Linux - Server 3 12-22-2007 06:39 PM
Sharing Internet Connection In Ubuntu Server breadfan311 Linux - Server 2 07-05-2007 11:39 AM
Ubuntu 5.10 internet connection problem cubbuk Linux - Networking 3 03-02-2006 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:24 AM.

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