Ubuntu does not connect to internet but windows does
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ubuntu does not connect to internet but windows does
Hi,
I am having issues with connecting to internet through wired conection on Ubuntu. wired network gets established but no internet available (windows PC works with the same cable).
/sbin/route returns
Destination Gateway Genmask Flags Metric Ref Use Iface
default 77.70.103.1 0.0.0.0 UG 0 0 0 eth0
77.70.103.0 * 255.255.255.0 U 1 0 0 eth0
link-local * 255.255.255.0 U 1000 0 0 eth0
I have tried mingling a bit with the configs (without manual set up of IP address it does not connect to wirde network at all, with manual set up of addresses it connects but no internet).
I am using TP-LINK TL-SF1008D as ethernet switch.
As I said the same cable works fine on a windows PC
My windows PC has static IP address and it works. I try using exactly the same on the ubuntu (plug out the cable from windows PC plug in into ubuntu). If I use DHCP the network manager shows that no connection can be established. With the static address it shows it is connected but no internet (ping localhost works, but no other ping).
Do you have proper DNS resolvers in /etc/resolv.conf? Are you able to ping the gateway ip from static IP connection?
Enable static connection in Ubuntu and put the following DNS resolvers in /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
Then see if you're able to connect the internet.
There is comment in resolve.conf> do not edit this file by hand. If I put something there it gets overwritten when I plug in the ntework cable....
Currently it says
nameserver 127.0.0.1
search 89.190.193.166
There is comment in resolve.conf> do not edit this file by hand. If I put something there it gets overwritten when I plug in the ntework cable....
Currently it says
nameserver 127.0.0.1
search 89.190.193.166
And pinging the 89.190.193.166 not successful.
I am using the network manager that comes with ubuntu but it seems to be working somewhat improperly....
Last edited by kkostadinov; 05-29-2012 at 07:30 AM.
Yes I still have a problem. The IP address is static (77.70.103.146) and can be checked via ifconfig. The address is also pinged successfully locally. The network is established but still no internet (I have tried different DNS server versions, the same from my windows PC which is working and the 8.8.8.8,8.8.4.4 which you kindly suggested)
Is the switched plugged straight into the MODEM?
How many other computers/devices are connected to the network?
It is a typical home setup. The stitch has only two devices connected to it (a PC and a TV decoder stuff which is currently switched off). I am just trying to unplug the pc (which is working fine inlcuding internet) and plug the ubuntu laptop (whcih is working fine except internet)
I would try resetting the MODEM and then the laptop. You may have a limit on the number of devices that can be connected and typically that is controlled by their MAC. Resetting the MODEM will erase the stored MAC data and may allow the laptop to connect.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.