LinuxQuestions.org
Visit Jeremy's Blog.
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 07-04-2016, 06:35 AM   #1
paolopiace
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Rep: Reputation: Disabled
ETH connected but NO internet access


Greetings!

This PC has Ubuntu 12.04 and kernel 3.5

After recent, small updates to the OS and some additional packages, I suddenly cannot access to internet: "Server Not Found".
It worked for years.

The PC is wired-connected on ETH1. I can ping the gateway successfully, as well as 127.0.0.1 and 8.8.8.8 (which I do not know what they are).

It all behaves the same if I try via WLAN instead of ETH.

The file /etc/resolv.conf contains:

nameserver 192.168.7.2
nameserver 192.168.1.241
search eng.myemployer.com

Ping to any of these fails totally.

I have another PC wire-connected and tablet/phones WiFi connected. All works just fine. Tha problem is only on this Ubuntu PC.

Can anyone help, please?

Last edited by paolopiace; 07-04-2016 at 06:38 AM.
 
Old 07-04-2016, 06:42 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,631

Rep: Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696
Quote:
nameserver 192.168.7.2
nameserver 192.168.1.241
This tells me that you HAD a local DNS server at 192.168.1.241, and another in a different subnet at 192.168.7.1. Since those are non-routable addresses, they were NOT out on the internet. Since you HAVE network and can ping an external DNS server (8.8.8.8) we know you have a proper route to the world. IT is as if your local DNS servers are down, or you can no longer reach them.

Do this, make the first entry on your /etc/resolv.conf file read
Code:
nameserver 8.8.8.8
so you can resolve public names. That will get you some action while you investigate what happened to your local name servers.

PS: 127.0.0.1 is your loopback address. IT is generally registered as the LO (not ETHx) interface, and provides a way to test that your networking system is running. Since it is your own machine, it gives no information about your external connections.

Last edited by wpeckham; 07-04-2016 at 06:45 AM.
 
1 members found this post helpful.
Old 07-04-2016, 06:52 AM   #3
paolopiace
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
.... Do this, make the first entry on your /etc/resolv.conf file read
Code:
nameserver 8.8.8.8
so you can resolve public names. That will get you some action while you investigate what happened to your local name servers.
It works. Thank You. But... how should I investigate "what happened to your local name servers" ?

It all started after having installed some VPN packages to ssh-access (succesfully) to "eng.myemployer.com". Now of course I cannot access anything at all.

Among the running processes I see [/usr/sbin/sshd -D] and [/usr/bin/ssh-agent ......]

Not sure if this helps.
Thanks again.
 
Old 07-05-2016, 05:55 AM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,631

Rep: Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696
ETH connected but NO internet access

pps. if you can ping public servers (8.8.8.8 is one) then you have internet. what you have not is name resolution (dns services) working.
 
Old 07-05-2016, 10:30 AM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by paolopiace View Post
It works. Thank You. But... how should I investigate "what happened to your local name servers" ?
Need a lot more information from you to answer that. Those DNS servers are non-standard. You, or somebody else, had to manually configure them somewhere. The question is why? Were there ever machines at those IPs? What happened to them? What does your network look like? And why did you feel it necessary to install VPN in order to SSH somewhere? Those are two completely different protocols.

Last edited by suicidaleggroll; 07-05-2016 at 10:31 AM.
 
  


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
wicd connected but no internet access mscole Slackware 13 06-13-2014 09:59 AM
Connected, but no internet access! mtravis Mandriva 5 12-28-2007 02:38 AM
connected but cant access internet ricmetal Linux - Wireless Networking 11 02-06-2007 10:31 PM
Connected to router,but not able to access internet. JAKK Linux - Networking 5 06-14-2006 07:37 AM
LAN Connected but cant access internet crw128 Linux - Networking 13 06-28-2005 05:51 PM

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

All times are GMT -5. The time now is 04:47 PM.

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