LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ubuntu does not connect to internet but windows does (https://www.linuxquestions.org/questions/linux-networking-3/ubuntu-does-not-connect-to-internet-but-windows-does-947359/)

kkostadinov 05-29-2012 06:17 AM

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

Please help.

blue_print 05-29-2012 06:54 AM

Do you have static IP or DHCP IP?

kkostadinov 05-29-2012 06:58 AM

Quote:

Originally Posted by blue_print (Post 4690191)
Do you have static IP or DHCP IP?

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).

Thanks for your help

blue_print 05-29-2012 07:15 AM

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.

kkostadinov 05-29-2012 07:21 AM

Quote:

Originally Posted by blue_print (Post 4690205)
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

kkostadinov 05-29-2012 07:24 AM

Quote:

Originally Posted by kkostadinov (Post 4690209)
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....

blue_print 05-29-2012 07:30 AM

Can you please try configuring the network as per the steps provided in the link?

http://www.howtogeek.com/howto/19541...ktop-computer/

Let us know if you still have any problems..

kkostadinov 05-29-2012 07:38 AM

Quote:

Originally Posted by blue_print (Post 4690222)
Can you please try configuring the network as per the steps provided in the link?

http://www.howtogeek.com/howto/19541...ktop-computer/

Let us know if you still have any problems..

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)

michaelk 05-29-2012 09:01 AM

Can you provide some details on the rest of the network. Where does the switch plug into to get to the internet?

kkostadinov 05-29-2012 09:05 AM

Quote:

Originally Posted by michaelk (Post 4690272)
Can you provide some details on the rest of the network. Where does the switch plug into to get to the internet?

It is some DSL I guess... I am just trying to mimic what the windows PC does (it is connected to the same switch, I even use the same cable)

michaelk 05-29-2012 09:15 AM

Is the switched plugged straight into the MODEM?
How many other computers/devices are connected to the network?

kkostadinov 05-29-2012 09:19 AM

Quote:

Originally Posted by michaelk (Post 4690283)
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)

michaelk 05-29-2012 09:29 AM

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.

kkostadinov 05-29-2012 10:00 AM

did not help....

michaelk 05-29-2012 12:08 PM

Was the laptop configured as static or DHCP?


All times are GMT -5. The time now is 05:57 AM.