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!
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
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.