Question

Keepalived on private network

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


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.

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.

Thanks Jarland,

So that confirms that there is no way to get a 2nd private IP out of the /16 for a droplet?

Regards

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