LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't connect to internet (https://www.linuxquestions.org/questions/linux-newbie-8/cant-connect-to-internet-4175493298/)

paulstenlund 01-31-2014 05:23 PM

can't connect to internet
 
I reloaded Ubuntu 10.4 LTS to run EMC and now I cant connect to the internet. I can ping the gateway and can ping the Linux box from a networked pc but the internet times out. What dns should I use?

thanks
Paul

markush 01-31-2014 05:26 PM

Do you really think that it's a problem with DNS? Execute
Code:

cat /etc/resolv.conf
to check which DNS-server you're using. One public DNS-server provided by Google would be 8.8.8.8

Markus

paulstenlund 01-31-2014 06:09 PM

Thanks markush

I set the Dns settings to match the winpc and it still doesnit work on the Linux box, what could it be??

Paul

markush 02-01-2014 02:46 AM

Well, please post the output of the
Code:

ifconfig
and
Code:

cat /etc/resolv.conf
command on the Linux-computer and the output of the
Code:

ipconfig /all
command on the Windows-Computer.
This will help us to compare the network-settings on both systems.

Markus

btmiller 02-01-2014 09:07 AM

Also check that the default gateway is set correctly with "netstat -rn".

schneidz 02-01-2014 09:19 AM

some diag info:
Code:

echo uname: && uname -a -m -p && echo lspci: && lspci && echo lsusb: && lsusb && echo lsmod: && lsmod && echo ifconfig: && ifconfig && echo ifconfig -a: && ifconfig -a && echo iwconfig: && iwconfig && echo resolv.conf: && cat /etc/resolv.conf && echo route: && route -n && echo ping router: && ping -c 1 `route | awk '/default/ {print $2}'` && echo ping dns-server: && ping -c 1 `awk '/nameserver/ {print $2}' /etc/resolv.conf | head -n 1` && echo ping using ip: && ping -c 1 64.235.229.141 && echo ping using dns: && ping -c 1 www.02144.com

andy78 02-01-2014 12:23 PM

You say you can ping the gateway, what's you gateway address?

You say you can ping the linux box, and what is that the computer your having issues with or another linux device serving your gateway?
Whats the address to the linux box?

If you enter this address in your browser 75.126.162.205 does it take you to linuxquestions.org?
If not then you expect an routing problem more then dns issue.

Anser the above and it will be easier to help out.

lleb 02-01-2014 12:33 PM

Quote:

Originally Posted by paulstenlund (Post 5108977)
I reloaded Ubuntu 10.4 LTS to run EMC and now I cant connect to the internet. I can ping the gateway and can ping the Linux box from a networked pc but the internet times out. What dns should I use?

thanks
Paul

are you using DHCP or Static IP for your Ubuntu box?

paulstenlund 02-01-2014 07:40 PM

Thanks for all the help guys

win-pc 192.168.0.3
Linux 192.168.0.7

dns1 192.168.0.1
dns2 209.206.160.254

gateway 192.168.0.1

ifconfig - mtu 180, metric 1 (10's of 1000s of errors)
cat /etc/resolv.conf - all match
ipconfig /all -- all match

netstat -rn

destination gateway genmask flags
192.168.0.0 0.0.0.0 255.255.255 u
169.244.0.0 0000 255.255.0.0 u
0 192.168.0.1 0 ug
0 192.168.0.1 0 ug

pretty strange don't know what it means - the gateway ip is there ??

thanks for looking
Paul

andy78 02-01-2014 07:44 PM

If you punch in this address in your browser 75.126.162.205 do you then end up here at LQ or not?

If you run "tracepath 75.126.162.205" how far does it go, does it stop at 192.168.0.1?

That routing table looks fishy to me, you are missing your universal gateway.

Destination
0.0.0.0
Gateway 192.168.01

But not sure so perform the above tests to se if you can reach LQ.


Another question is your address received by dhcp or have you configured it with static address?

paulstenlund 02-01-2014 08:53 PM

andy

Its a static address, the browser times out before it gets to LQ. Tracepath goes out into the world and hops around, it quits at 31 hops, lots of "no replys" before it gets to LQ. sometimes it doesn't get past the router before it quits.

That routing table doesn't make sense to me. What should one look like?

Paul

andy78 02-01-2014 09:00 PM

Ok.
31 hops is the maximum.


well mine looks like this, obeserve the last line.

Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0


Is there any difference if you connect via wifi or ethernet?
What service are you using since it requires you to configure it staticly is it cable, dsl, fiber, i guess you have som router of some kind from your provider.

andy78 02-01-2014 09:09 PM

Is there a difference if you do
ping 75.126.162.205

Compared with.

ping linuxquestion.org


Is the outcome the same?
If its an dns issue the last ping should return an error.

paulstenlund 02-01-2014 09:15 PM

no wifi, it wouldn't connect automatically

I've got 2 last lines with my gateway

0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

how do I delete one??

paulstenlund 02-01-2014 09:20 PM

andy

"ping 75.126.162.205" works fine

"ping linuxquestion.org" just hangs up


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