By hrvojeZap
Hello everyone! :) So I have created a droplet with Ubuntu 20, I have installed apache, mysql, php and everything I need… I made it work perfectly as I need it.
Then I decided to create a image by following this tutorial: https://www.digitalocean.com/community/tutorials/how-to-create-an-image-of-your-linux-environment-and-launch-it-on-digitalocean
And everything worked fine, I uploaded the image to spaces I used the image to create a new droplet.
New droplet is created, however I cannot reach it via IP (winSCP or browser or ping)… however I can SSH to it via DigitalOcean console…
So I guess the problem is somehow in IP not assigned properly in server configuration?
I tried searching for a solution for over 20 hours and I tried many things… with no success… :(
If anyone could help me out I would be grateful! :)
Thank you in advance!
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!
Hi, Check if you can see your droplet’s public IP address assigned to any network interface
sudo ip address
and what is a gateway (via) and network interface (dev) for default routing
sudo ip route
Check if you can ping the gateway from outside and inside your droplet.
This comment has been deleted
Hi,
Late last night (attempt #84593484) :D I managed to setup the static IP and it’s working so far.
I have this in netplan
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
addresses:
- 142.93.150.177/20
gateway4: 142.93.144.1
nameservers:
addresses:
- 8.8.8.8
- 1.1.1.1
However my other DigitalOcean generated droplets have network such as:
network:
version: 2
ethernets:
eth0:
addresses:
- 167.99.91.233/20
- 10.16.0.5/16
gateway4: 167.99.80.1
match:
macaddress: 2a:e6:19:8a:a1:1f
nameservers:
addresses:
- 67.207.67.2
- 67.207.67.3
search: []
set-name: eth0
eth1:
addresses:
- 10.106.0.2/20
match:
macaddress: 9a:98:f8:9a:8d:da
nameservers:
addresses:
- 67.207.67.2
- 67.207.67.3
search: []
set-name: eth1
So in network I have manually generated I’m missing eth1 and the nameservers are public ones, is that bad or that configuration is ok? The missing ethernet port is also ok or?
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.