LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2012, 06:17 AM   #1
kkostadinov
LQ Newbie
 
Registered: May 2012
Posts: 9

Rep: Reputation: Disabled
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.
 
Old 05-29-2012, 06:54 AM   #2
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
Do you have static IP or DHCP IP?
 
1 members found this post helpful.
Old 05-29-2012, 06:58 AM   #3
kkostadinov
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by blue_print View Post
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
 
Old 05-29-2012, 07:15 AM   #4
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
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.
 
1 members found this post helpful.
Old 05-29-2012, 07:21 AM   #5
kkostadinov
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by blue_print View Post
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
 
Old 05-29-2012, 07:24 AM   #6
kkostadinov
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kkostadinov View Post
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.
 
Old 05-29-2012, 07:30 AM   #7
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
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..
 
Old 05-29-2012, 07:38 AM   #8
kkostadinov
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by blue_print View Post
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)
 
Old 05-29-2012, 09:01 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
Can you provide some details on the rest of the network. Where does the switch plug into to get to the internet?
 
Old 05-29-2012, 09:05 AM   #10
kkostadinov
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
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)
 
Old 05-29-2012, 09:15 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
Is the switched plugged straight into the MODEM?
How many other computers/devices are connected to the network?
 
Old 05-29-2012, 09:19 AM   #12
kkostadinov
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
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)
 
Old 05-29-2012, 09:29 AM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
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.
 
1 members found this post helpful.
Old 05-29-2012, 10:00 AM   #14
kkostadinov
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
did not help....
 
Old 05-29-2012, 12:08 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
Was the laptop configured as static or DHCP?
 
  


Reply



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
[SOLVED] Cannot access Internet from ubuntu 9.10. Can connect from windows virtual machine archShade Linux - Networking 12 01-25-2010 04:24 PM
[SOLVED] Cant connect to the internet if I use Linux but can still if i use Windows 7 lazarwolfzak Linux - Newbie 15 12-29-2009 06:46 PM
Not able to connect to internet but its working on my windows pc..Help me? naveen_cs321 Linux - Newbie 4 10-19-2009 08:59 AM
Cannot connect to internet after restarting from windows MartinZ SUSE / openSUSE 2 04-17-2005 05:16 AM
Can't connect to the internet now (windows related) Kinstonian Linux - Networking 3 07-21-2003 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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