A Floating IP is a type of public, static IP address that can be assigned to instances within a private subnet. This means that the instances do not have a public network interface. By using a Floating IP, these instances are able to receive incoming connections from the Internet
Please note: The private subnet of the instance must be routable . Routing can be enabled in the subnet settings.
A floating IP allows you to quickly provide access from an external network to an instance that does not have a public network interface. By assigning an address to the instance; you will be able to connect to it.
Another method for providing access is by creating a public interface for the device. However, this can cause conflicts with the private routed interface as both are used for accessing the internet. You would have to configure the routing manually. A Floating IP is a convenient solution if you only need temporary access to an external network or prefer not to deal with routing configuration.
When you reserve a floating IP and assign it to your instance, the router directs incoming traffic to your device by forwarding packets intended for that IP. Outgoing traffic from your device will then be sent using the floating IP as the source.
1. Open the Networking section, select the required network, and navigate to your equipment's subnet settings.
2. Click the three dots menu, then select Edit.
3. Ensure the Enable router gateway slider is enabled, making the subnet routable, and allowing servers within the subnet to access the Internet and receive incoming connections.
A floating IP is assigned by a specific data center, and its address is linked to that location. It can only be assigned to an instance within the exact location.
1. Select the Region where your machine is located to assign a floating IP and navigate to the Networking section.
2. Open the Floating IPs section. You can create a floating IP without assigning it to a machine by clicking Create a new Floating IP.
3. Additionally, you can create a floating IP and immediately assign it to a specific instance. To do this, enable the "Assign to existed instance" slider, select the machine and interface, and click Create a new floating IP.
When creating an instance, in the "Network settings" section, select the "Private" network type. Specify the network and subnet of the interface you want to assign the floating IP. Enable the "Use floating IP" slider, click "Create a new floating IP", and save the settings using the "Add Interface" button.
The instance will be created with a private interface and a new floating IP assigned to it.
Next to the free IP, click "Assign to instance" or select this option from the selector on the right.
Select the instance in the pop-up window, and the floating IP's network interface will be assigned. Click Assign floating IP.
You can detach a floating IP address in the "Floating IPs" section or in the instance menu. In the "Floating IP" section, click the selector next to the address and select Detach from Instance, and the IP will no longer be assigned to the machine.
In the instance menu, open the "Networking" tab and select the private interface. Open the selector and click "Detach Floating IP". The IP will no longer be assigned to this machine.
In the "Floating IPs" section, click the selector next to the desired address and select Delete. The IP will be removed, and you don't have to pay anymore.
Was this article helpful?
Discover our offerings, including virtual instances starting from 3.7 euro/mo, bare metal servers, AI Infrastructure, load balancers, Managed Kubernetes, Function as a Service, and Centralized Logging solutions.