Question

Droplet created from personal custom image

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!


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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?

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.