Skip to main content
A floating IP is a separately allocated IPv4 or IPv6 address. Public addresses come from the regional public pool; private addresses come from a selected subnet and remain inside its VPC. Both translate to an address on the target NIC, so attaching or moving one does not reconfigure the guest. A public floating IP is not reachable merely because you allocated it. Reaching an instance from the internet takes four things, and three of them have nothing to do with the address itself.
Allocating a floating IP and attaching it is not enough. The instance’s subnet also needs an internet gateway attached to the VPC and a 0.0.0.0/0 route pointing at that gateway. Without the route the reply traffic has nowhere to go, and from outside it looks exactly like the inbound packet being dropped — so you spend the afternoon debugging the wrong direction.The API refuses the attach for this reason rather than handing you a dead address.

The reachability chain

1

Create an internet gateway for the VPC

Go to Networking → Internet Gateways, choose Create Internet Gateway, and enter a Name and VPC. The selected VPC is permanent.
Creation makes the gateway available as a route target. Add routes separately.
2

Add the default route to the subnet's route table

Go to Networking → Route Tables and open the table the subnet uses — the subnet’s page names it under Route table. Choose Add Route, set Destination CIDR to 0.0.0.0/0, set Target type to Internet Gateway, pick the gateway under Internet gateway, and confirm with Add Route.If no gateway is available, create one in this VPC first.
This is what makes the subnet public. It is also what makes the reply path exist.
3

Attach the floating IP to the interface

Go to Networking → Floating IPs, choose Allocate Floating IP if you do not have a spare one, then open the address and choose Attach. Pick the NIC under Interface; its matching address is selected as the target. Confirm with Attach floating IP.The same attach is on the NIC: open it under Networking → Interfaces and choose Attach floating IP.
If the subnet has no default route to an internet gateway, this fails with 400: “the interface’s subnet has no default route (0.0.0.0/0) to an internet gateway — attach an internet gateway to the VPC and add a default route first”. The console shows that same text under Failed to attach floating IP.
4

Allow the traffic in a security group

Open the NIC under Networking → Interfaces and choose Attach security group. Its rules “start filtering this interface’s traffic as soon as it is attached.”
An interface in no security group drops everything. Security groups covers the default posture.
Create VPC in the console does the first two steps for you. Turn on Internet gateway under Internet access and ask for at least one public subnet, and the workflow runs Create internet gateway, Attach internet gateway and Configure public internet route as part of provisioning. The floating IP and the security group are still yours to do afterwards.
The guard runs in both directions. Deleting the 0.0.0.0/0 route while floating IPs still depend on it is refused too: “cannot delete the default route: N floating IP(s) in this route table’s subnets depend on it for internet reachability — detach them first”. Any other route deletes normally, and so does the default route once nothing is attached.

Allocating an address

Choose visibility (public by default or private) and family (ipv4 by default or ipv6) at allocation. These values are immutable. The address is assigned by the platform. A private allocation also requires subnet.
Go to Networking → Floating IPs and choose Allocate Floating IP. Choose Visibility and Family, and select a subnet for a private allocation. Add a Description and Tags if desired. Confirm with Allocate IP.
An IPv4 address counts against your floating_ips_v4 quota, the same one a NAT gateway address draws on; an IPv6 address counts against floating_ips_v6. The two are separate allowances — a v4 address is a share of the region’s scarce IPv4 block, a v6 one is not.

Public and private attachment

Read GET /v1/interfaces/{interface_id}/addresses for the target NIC and pass its matching-family child ID as address_id alongside interface. A NIC can have one public and one private floating IP per family: at most four mappings with the current address limits. A public and private IPv4 FIP can both translate to the same guest IPv4 address; the same is true for IPv6. Public IPv4 requires 0.0.0.0/0 to an internet gateway. Public IPv6 requires ::/0 to an internet gateway and a directly attached IPv6 address. NAT66 maps the FIP to the NIC’s primary IPv6 /128, whether that address is global or ULA. New outbound connections from that target address use the public FIP while attached. If the target has a global IPv6 address, both that native address and the floating IP remain reachable, subject to the subnet’s routes and security group rules. Replies use the address the client connected to. Attaching or detaching the FIP requires no guest address changes. Other global addresses within the NIC’s /96 keep their native routing. Untranslated ULA traffic cannot leave for the public internet. Private FIPs need no internet gateway. Their allocation subnet and target NIC must be in the same VPC; they may be in different subnets. The address remains reserved in its allocation subnet until released, including while detached. Private mappings translate incoming traffic and its replies, without replacing the NIC’s source address for unrelated outbound connections. They are useful for private service identities and custom load balancers. Detach removes the mapping but keeps the allocation. It does not allocate a replacement public address. The guest address remains unchanged. Without a public FIP, IPv4 can use a NAT gateway, while a native global IPv6 address can use its internet route directly. Health checks apply to private and public floating IPs. You can add direct interfaces one at a time in the same VPC when the region supports anycast. Instance pools maintain their own interface lists as replicas change.
Open an address without a pool or load balancer owner and choose Attach, then pick the NIC under Interface and confirm with Attach floating IP. The same action is on the NIC itself, as Attach floating IP under Networking → Interfaces.
Re-attaching to a NIC that already holds it is a no-op success.It is refused when:
  • a public FIP lacks a default internet-gateway route in its family (400);
  • a private FIP and target NIC belong to different VPCs (409);
  • the target address is absent or belongs to the other family (400);
  • the interface already carries a different floating IP in the same family and visibility (409);
  • another interface belongs to a different VPC (409);
  • a second interface requires anycast support that the region has not enabled (400);
  • the address is bound to a resource that owns its own bindings, such as a load balancer or an instance pool — attach and detach it there. The console does not offer Attach on such an address at all: its Attached interface reads Bound by another service, or No replica is serving it yet for a pool.
Choose Detach on the address’s page to remove all direct interfaces, or Detach floating IP from a NIC’s page to remove only that interface. Confirm with Detach. Pool and load balancer bindings must be managed through their owners.
It is idempotent. Detaching an already-detached address, or an interface that is not a member, returns 204 with no response body.
Release floating IP, on the address’s Settings tab.
Either way the address goes back to the pool. Refused with 409 while it is still attached, or while it belongs to an instance pool. Detach first.

Reading the bindings

attached_to identifies the instance pool or load balancer that owns the address, with id, crn and optional name. Direct interface attachments have attached_to: null, including when several interfaces share the address. An empty pool retains ownership. Manage pool bindings through the pool endpoints. Fetch GET /v1/floating-ips/{floating_ip_id}/interfaces for a page of attached interfaces. The response wraps canonical Interface objects in interfaces, alongside meta. Each interface also carries health, reason and optional address_id for this binding. created_at is the interface creation time. Pass limit and then meta.marker as marker while meta.has_more is true. The floating IP itself does not embed interfaces. It retains attached_to for its pool or load balancer owner, and vpc and subnet references for private addresses (null for public addresses). An empty related collection looks like this:

Filter by attachment owner

Pass an exact canonical CRN to attached_to on GET /v1/floating-ips. For example, this lists a pool’s addresses even when the pool has no members:
The filter is applied before pagination and intersected with other filters. While meta.has_more is true, pass meta.marker as marker on the next request, preserving attached_to and the other filters. A malformed CRN, an empty value, or a flat interface CRN returns 400. A well-formed CRN for another account, region, or unsupported resource type returns an empty page. The filter does not accept UUIDs, bare names, or null to select free addresses; list addresses whose attached_to is null, then check that their interfaces collection is empty. An interface CRN matches membership in interfaces even when attached_to in the response is null. With the released CLI, use the canonical singular command and --all to walk every matching page:
With the Go SDK, pass the same filter to ListFloatingIPs:
This returns one page. Preserve AttachedTo when setting Marker for the next page; alternatively, the SDK’s ListFloatingIPsAll iterator walks all pages for you.

Understand member health

reason explains the state: unprobed means no check, booting means the guest has not yet been reached, probe_failed means a configured check is failing, and passing means the guest is up and any configured check passes. An unhealthy member remains in interfaces; membership alone is not readiness. Without health_check, healthy indicates guest liveness, not application readiness. See health troubleshooting.

One address in front of several instances

You can share an address by attaching several interfaces directly or by assigning it to an instance pool. Direct interfaces must belong to the same VPC, and the region must support anycast. Repeat the attach request for each interface; the paginated interfaces endpoint lists them all while attached_to stays null. A pool keeps membership in step as it scales. Every live replica can join, including replicas sharing a host; placement affects capacity and resilience, not whether a member can receive traffic. Members still booting can appear in the list as unhealthy before they receive traffic.
Open the pool under Compute → Instance pools, go to its Floating IPs tab and choose Attach floating IP. Detaching is the row’s Detach floating IP action on that same tab.The address’s own page will not let you do this — an address a pool holds offers no Attach button at all, and its Attached interface reads No replica is serving it yet until a replica picks it up. Use Attachment owner to open the owning pool or load balancer; if the owner cannot be resolved, its CRN remains visible. The Interfaces tab shows interface identities, Health and Reason, without manual member controls. An empty pool remains attached.
With several healthy members, new connections are distributed among them. Private pool addresses stay inside their VPC. Public pool addresses require internet routing in their selected family. Connections already established with a member do not migrate when that member disappears.
A shared address does not terminate TLS or route HTTP requests. Without a configured health_check, member health indicates guest liveness only. Connections in flight to a member that goes away end rather than move.