I have 2 droplets with public and private IP addresses. I am trying to set up keepalived on both of them in a MASTER/BACKUP config using the private network.
I have been allocated private addresses from a /16 range for my droplets and I picked an unused one from the same range as the virtual IP, but after starting keepalived, other droplets on the same private network cannot reach the virtual IP:
ping 10.129.254.254
PING 10.129.254.254 (10.129.254.254) 56(84) bytes of data.
From 10.129.77.181 icmp_seq=1 Destination Host Unreachable
From 10.129.77.181 icmp_seq=2 Destination Host Unreachable
From 10.129.77.181 icmp_seq=3 Destination Host Unreachable
This works fine on VMs I have on another platform than Digital Ocean - is there something else I need to configure in DO for this to work?
Thanks! Marius
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!
Hello friend!
In the case of private networking we do use a /16, but each droplet is allocated a single private IP that it must use. If created with private networking enabled, this will already be configured on the droplet. However, if you are adding it after the droplet’s creation, you will want to check the Networking tab on the droplet’s page in the control panel to find the specific IP that has been allocated to it.
Kind Regards, Jarland
Thanks Jarland,
So that confirms that there is no way to get a 2nd private IP out of the /16 for a droplet?
Regards
From support ticket
Please note that at the moment it is not possible to assign multiple IP addresses to a single interface. Both public and private network interfaces of a droplet (eth0 and eth1) can have a single IP address with an exception of a reserved IP address that is attached to the public network interface. So, based on the scenario that you have presented in which you are looking to add the additional IP address to the eth1 interface, will not be possible because of this limitation.
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.