Tutorials How to manage floating IP addresses

How to manage floating IP addresses

Our SDN enables transferable IP address called a floating IP that can be used to build advanced availability and redundancy. Floating IP is a static public IPv4 address that can be attached to your cloud server. It directs traffic to one server at the time and can be moved between multiple servers in a blink of an eye.

Floating IPs can be useful in multiple ways, for example, you could perform upgrades to a copy of your production server without interrupting the service, and then transferring the floating IP to the new server when everything is ready and working. Floating IPs can also be used for redundancy in case of a system fault on your main server, or for automated failover between multiple cloud hosts.

Attaching new floating IP

Go to your UpCloud control panel to get started.

First, shut down one of the servers you wish to use the floating IP address on. Only one of the servers must be shut down while a new floating IP is being attached.

Once the cloud server you want to add the floating IP onto, go to the Floating IP addresses section under the Network menu.

Floating IP addresses

To continue, click the New Floating IP button. This will open a new configuration window.

Choose the initial cloud server and a network interface with a public IP address then click the Create Floating IP button to confirm.

Create floating IP

You can then see the new floating IP address attached to your cloud server.

Floating IP created

The new floating IP will also show in the server-specific Network menu attached to your chosen public IP network interfaces on that server.

Server network settings

Configure the new floating IP address on your server at the operating system level. Continue on with our guides for CentOS, Debian, Ubuntu, CoreOS or Windows on how to configure the floating IP on your servers.

Transferring floating IP

The advantage of a floating IP over regular IP addresses is the ability to transfer the IP from one server to another instantaneously. Depending on your use-case, you might wish to move the floating IP address between servers at the time of your choosing. This can be easily done manually at your UpCloud control panel or by using the API.

Go to your UpCloud control panel and Floating IP addresses under the Network menu.

Click the Reassign button on the IP address you wish to point to a different cloud server.

Reassign floating IP

Select the new server from the drop-down menu, then pick a network interface to attach to. Then click Submit to confirm.

Reassigning floating IP

The floating IP will then immediately begin pointing to the cloud server and interface you just selected.

Floating IP reassigned

If you haven’t used the floating IP on the new server before, you’ll need to perform a one-time configuration to enable traffic for CentOS, Debian, Ubuntu, CoreOS or Windows.

Deleting floating IP

If you no longer have a need for a specific floating IP, you can delete it. Note that like with any other IP address, deleting one is permanent and cannot be undone. Should you wish to retain the same IP address, you should keep the floating IP without deleting it.

To start, go to your UpCloud control panel and Floating IP addresses under the Network menu.

Find the floating IP address you wish to delete and click the Delete icon on that IP.

Delete floating IP

You will then be asked to confirm the deletion, continue by clicking the Delete button.

Deleting floating IP

The floating IP is then removed from the server it was pointed to. However, any network interfaces configured at the OS level need to be cleared manually.

Leave a Reply

Your email address will not be published. Required fields are marked *

Locations

Helsinki (HQ)

In the capital city of Finland, you will find our headquarters, and our first data centre. This is where we handle most of our development and innovation.

London

London was our second office to open, and a important step in introducing UpCloud to the world. Here our amazing staff can help you with both sales and support, in addition to host tons of interesting meetups.

Singapore

Singapore was our 3rd office to be opened, and enjoys one of most engaged and fastest growing user bases we have ever seen.

Seattle

Seattle is our 4th and latest office to be opened, and our way to reach out across the pond to our many users in the Americas.