For some reason when I reboot my droplet, the network configuration is not working. The details appear correctly for the interfaces file, but the interface doesn’t appear to be getting assigned.
To fix that issue I have to do this:
ip address add IP_ADDRESS_1/20 dev eth0
That updates the output of
ip addr to show that the IP address is assigned, but connectivity still will not work until the route is setup.
ip route add default via IP_ADDRESS_2 dev eth0
This updates the
ip route output to have a default route.
If I reboot the droplet I can’t connect to the droplet via SSH (any attempt to access the public IP address fail) and I have to use the web browser console to access the droplet and to use the commands above in order to restore the correct work of the server.
Can anyone help me to find out the reason which may cause this issues?
Every time when I reboot I reproduce the same issue. Any suggestions where I have to look first?
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!
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.
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.
Click below to sign up and get $200 of credit to try our products over 60 days!