I was setting up HAPRoxy load balancer with a failover on my machine(X.X.X.106). I see the floating IP assigned to it is (Y.Y.Y.191). However I don’t see it in the list of IPs listed using ip a
or ifconfig
due to which I am unable to bind the floating IP address to my HAProxy load balancer.
root@ubuntu-s-1vcpu-1gb-blr1-01:~# ip a
floating ip address not prsent.
Although i am able to ssh using the floating IP address
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.
Hello,
For this you can use the Droplet’s anchor IP instead as described here:
https://docs.digitalocean.com/products/networking/floating-ips/how-to/find-anchor-ips/
The “anchor IP” is the local private IP address that the floating IP will bind to when attached to a DigitalOcean server. It is simply an alias for the regular eth0 address, implemented at the hypervisor level.
Hope that this helps!
Best,
Bobby