By saeed
After creating 2 droplets(CentOS 7), and booting the system, I powered them down, added private network to them, which DO portal showed its addresses correctly. But ifconfig command for eth1 did not have any of that IP address, just showing the IPv6 address. I added the private IP address with ifconfig to eth1, which provided private IP to the instance(droplet), but since there is no file under /etc/sysconfig/network-scripts/ for ifcfg-eth1, most probably every time I reboot the instance, I have to re-assign the private IP to the instance. which can be counter-productive. Could you please let me know which step I am missing here. Thanks.
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!
If you’ll drop by the link below and look for the header “CentOS & Fedora”, it’ll provide you with the correct way to get the Private Network up and running :-). There’s a specific method you need to use when adding the interface and you need to make sure that you reboot after performing the changes as well (this reboot would be in addition to the one performed through the control panel to gain the IP).
Adding the ifcfg-eth1 file manually resolved the concern of reboot and IP assignment for private interface. Thanks @jtittle
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.