The reachability chain
1
Create an internet gateway for the VPC
- Console
- API
Go to Networking → Internet Gateways, choose Create Internet Gateway, and enter a Name and VPC. The selected VPC is permanent.
2
Add the default route to the subnet's route table
- Console
- API
- CLI
- Go
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.3
Attach the floating IP to the interface
- Console
- API
- CLI
- Go
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.
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
- Console
- API
- CLI
- Go
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.”
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
Choosevisibility (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.
- Console
- API
- CLI
- Go
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.
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
ReadGET /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.
Attach
Attach
- Console
- API
- CLI
- Go
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.
- 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.
Detach
Detach
- Console
- API
- CLI
- Go
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.
204 with no response body.Release
Release
- Console
- API
- CLI
- Go
Release floating IP, on the address’s Settings tab.
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 toattached_to on GET /v1/floating-ips.
For example, this lists a pool’s addresses even when the pool has no members:
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:
ListFloatingIPs:
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 whileattached_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.
- Console
- API
- CLI
- Go
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.

