LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2021, 05:40 PM   #1
nanoprobe II
LQ Newbie
 
Registered: Dec 2009
Posts: 20

Rep: Reputation: 1
[SOLVED]No internet connectivity after boot recovery


Not sure if this is the right place for this but here goes.
I have a linux machine running Ubuntu 16.04LTS that's only occasionally used for distributed computing. Last time I shut it down it was working perfectly. That was about 6 months ago. I tried to restart it yesterday but it wouldn't boot. I ran a boot recovery disc and it will now boot but I have no internet connection. I have several other non linux devices running so I know my internet is good. I've tried several of the suggestions I found while searching the net but none of them worked.(I know,should have come here first) Test on the NIC shows it's functioning as it should. Tried a brand new ethernet cable and even plugged into a different router port. Nada.One suggestion was to upgrade to 18.04 or 20.04. I downloaded the 18.04 ISO (twice) and burned it to disc (twice)but when I boot to it all I get is a black screen. The files are being loaded but it doesn't help if I can't see what to do. Sure would like to get this going without having to wipe the drive and do a complete reinstall.

Last edited by nanoprobe II; 03-04-2021 at 12:44 PM. Reason: SOLVED
 
Old 03-03-2021, 07:20 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
What do you mean by "no internet connection" - how did you test this?

Does this computer have access to the network? I.e. can it reach routers or other devices on the same network to which it is attached?

Assuming that your internet connection is wired (you do mention cables), I would check (this is not complete and not necessarily in the right order, but it's a start, I'd hope):
  • Are the interfaces listed by commands like ip link?
  • Do they have IP addresses (ip address)?
  • How are their IP addresses configured? On Debian 16, this is normally done in the file /etc/network/interfaces, or files under /etc/network/interfaces.d.
  • If they do have IP addresses, check the routing table (ip route). Normally, the default route tells the computer where to send traffic that goes to the internet.
  • If IP addresses are configured, check basic connectivity to devices with ping. This includes addresses on the internet, e.g. ping 1.1.1.1.
  • If by "no internet", you actually mean that the computer can't resolve domain names, e.g. ping google.com responds with an error about not knowing google.com, then you may well have internet access, but your domain name resolution doesn't work.
 
Old 03-03-2021, 08:33 PM   #3
nanoprobe II
LQ Newbie
 
Registered: Dec 2009
Posts: 20

Original Poster
Rep: Reputation: 1
This linux machine can be seen by my main desktop which I use to control it when running distributed computing. The Linux machine has an assigned static IP address as do all my computers. When I ping the Linux box from my main windows box I get normal results. When I ping the other direction I get nothing. When I ping google.com from the Linux box I get unknown host. It's like packets can go in but not out. I noticed something in the windows app log of the program I use to control all the other machines.World Community Grid 3/3/2021 9:04:59 PM Scheduler request failed: Couldn't resolve host name I've seen that a time or 2 over the years but in the past a reboot of the linux box cleared that up. Not this time. I checked the hosts file and the hostname file and they are the same. You could be right about the domain name resolution. How do I fix that?
 
Old 03-04-2021, 12:10 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by nanoprobe II View Post
When I ping the Linux box from my main windows box I get normal results. When I ping the other direction I get nothing.
I am not sure, but it could be due to an ill-configured routing table on the Linux box, such as the absence of a default route.
Quote:
You could be right about the domain name resolution. How do I fix that?
You have to configure DNS on the Linux box. This is done by putting the IP addresses of nameservers into /etc/resolv.conf.

But first, ensure that the Linux box has connectivity with local devices.
 
Old 03-04-2021, 12:42 PM   #5
nanoprobe II
LQ Newbie
 
Registered: Dec 2009
Posts: 20

Original Poster
Rep: Reputation: 1
I'm 99.9% sure the static IP address is configured correctly including the preferred DNS servers. I've checked them against my other machines and except for the last # in the address they are the same.
The nameserver in the /etc/resolv.conf file is 127.0.0.53. From what I've researched that is correct. Just for giggles I added the preferred DNS server IPs to the file and I now have internet connectivity. Go figure. I don't remember doing that when I first set this machine up but who knows. My memory ain't what it used to be. I rebooted just to make sure and it's good. Should I just leave the 127.0.0.53 in the config file or does it matter if it's in there or not? Thanks for the help. You guys rock. I'll edit the title to solved.
Just another quick question.Is there any explanation as to why I got a black screen when I tried to update and is there a work around in case I want to upgrade later? Thanks again.

Last edited by nanoprobe II; 03-04-2021 at 04:12 PM.
 
Old 03-04-2021, 08:35 PM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by nanoprobe II View Post
The nameserver in the /etc/resolv.conf file is 127.0.0.53. From what I've researched that is correct. Just for giggles I added the preferred DNS server IPs to the file and I now have internet connectivity.
You need to learn how systemd-resolved is configured. You can start with the official man page, although plenty of explanations can be found in the internet.
 
  


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
No Internet/Network connectivity after Fedora 22 upgrade. - SOLVED Kuckles Linux - Software 4 02-20-2017 07:36 PM
[SOLVED] Kali 3.12 no iNET connectivity >> boot 3.7 >> connectivity = fine bostonsean Linux - Networking 6 04-19-2014 05:41 PM
Outgoing Connectivity problems. Incoming connectivity fine Fionnbharr Linux - Newbie 1 10-02-2008 12:51 PM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 12:21 PM
connectivity or not connectivity munkie_poo Linux - Newbie 0 05-07-2004 06:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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