By nguyencules
When I pinged google, I saw: “unknown host google.com” When I clone the source, I saw: “can’t access to github” When I install package, I saw: “Fail to fetch …”
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hello, @nguyencules
What happens when you execute ifconfig -a
can you see the eth0 interface listed? If this one is not present then we will need to sort this out.
I know that sometimes some packages can be uninstalled somehow on reboot and there are cases where cloud-init is one of them. You can check if the package is present and currently installed on your droplet as well.
A similar issue was reported here as well: https://www.digitalocean.com/community/questions/no-internet-connection-after-droplet-reboot
You can check the answer posted from lukasea17033bb7e7ecf80fc21 and see the suggested steps if needed.
/etc/udev/rules.d/70-persistent-net.rules
file/etc/netplan/50-cloud-init.yaml
fileapt update
and apt upgrade
Also, have you tried to power off the droplet and then start it again instead of just rebooting it? You can perform this action from the control panel.
Let me know how it goes.
Regards, Alex
Hi @nguyencules,
It seems like your Network service is not running properly. Are you by any chance accessing your DigitalOcean droplet using the Web Console?
Additionally, once you are inside the droplet, can you try and execute the following command
service network restart
What does it say? When it restarts, try to ping google again and see what happens.
Regards, KFSys
Hi @nguyencules,
I’ll urge you to check @alexdo’ s answer. See if following his suggestions helps you with your network issue.
Please give it a try and let us know how did it go.
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.