LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Internet connection problem with ubuntu server (https://www.linuxquestions.org/questions/ubuntu-63/internet-connection-problem-with-ubuntu-server-859071/)

hassaan 01-27-2011 01:00 PM

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

sag47 01-27-2011 01:45 PM

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?

hassaan 01-27-2011 01:56 PM

Quote:

Originally Posted by sag47 (Post 4239835)
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

sag47 01-27-2011 01:58 PM

ping 127.0.0.1 to make sure your network card is okay. Also ping an internet address like Google.com. Do they ping?

hassaan 01-27-2011 02:07 PM

Quote:

Originally Posted by sag47 (Post 4239844)
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

sag47 01-27-2011 02:16 PM

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

hassaan 01-27-2011 02:28 PM

Quote:

Originally Posted by sag47 (Post 4239863)
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)

sag47 01-27-2011 02:53 PM

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.

hassaan 01-31-2011 10:48 AM

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

salasi 01-31-2011 01:36 PM

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?


All times are GMT -5. The time now is 03:14 PM.