I have been having an issue where my settings in the /etc/rc.conf file are getting reset. Namely my ip configurations are being blanked out. When that happens and I reboot, I have no connectivity and must restore through the console. I then restore the rc.conf from backup. But then it blanks out again.
The file currently contains:
hostname=""
# DigitalOcean Dynamic Configuration lines and the immediate line below it,
# are removed each boot. Hostname is set each boot.
# DigitalOcean Dynamic Configuration
defaultrouter=""
# DigitalOcean Dynamic Configuration
ifconfig_vtnet0="inet netmask "
# DigitalOcean Dynamic Configuration
ifconfig_vtnet0_alias0="inet netmask "
# DigitalOcean Dynamic Configuration
ifconfig_vtnet1="inet netmask "
# DigitalOcean Dynamic Configuration
ifconfig_vtnet0_ipv6="inet6 prefixlen "
# DigitalOcean Dynamic Configuration
ipv6_defaultrouter=""
# DigitalOcean Dynamic Configuration
ipv6_activate_all_interfaces="yes"
I have considered making the rc.conf file read only, but I’d rather fix the root problem. Anyone have any insights?
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!
I noticed this doesn’t seem to cater for floating IP addresses. Is there any solution on that
Take a look at:
/usr/local/etc/rc.d/digitalocean
On boot up, this script sets the network information based on your droplet’s configuration. If you want to keep the network settings static, this script can be removed.
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.