Skip to content

Connect a Floating IP to an Instance

By default, instances in a Virtual Private Cloud (VPC) only have private IP addresses. To make an instance accessible from the Internet, you need to associate it with a Floating IP.

Prerequisites

  • An active instance running in a VPC.
  • A router with a gateway connected to the external network (see Set up a VPC).
  • Project quota for Floating IPs.

Steps

Track your progress. Data is saved locally in your browser.
Checklist: None

Allocate a Floating IP

If you don't have an available floating IP in your project, you must first allocate one from the public pool.

Alpha / Beta Notice

During the Stud I/O Cloud private alpha / beta, a set of floating IPs are allocated to your project upon request.

The actions below are only required if you need to allocate more IPs from the pool yourself. Otherwise, you can skip to the next step.

  1. Navigate to Network > Floating IPs in the left sidebar.🌐Open Horizon
  2. Click Allocate IP To Project.
  3. Pool: Select the available external network (usually public or ext-net).
  4. Click Allocate IP. The new IP will appear in the list with the status Released (Down).

Associate the IP with an Instance

Once allocated, you can connect the floating IP to your instance.

  1. Navigate to Compute > Instances.
  2. Locate your instance and click the Actions dropdown menu on the far right.
  3. Select Associate Floating IP.
  4. In the dialog box:
    • IP Address: Select the floating IP you just allocated.
    • Port to be associated: Select the private IP of your instance.
  5. Click Associate.

Verify Connectivity

  1. On the Instances page, you should now see the floating IP listed alongside the private IP for your instance.
  2. Attempt to connect to the instance using the floating IP:
    bash
    ssh <username>@<floating-ip>
    Note: Ensure your security groups allow SSH traffic (port 22).

Troubleshooting

  • IP allocation fails: Check your project quotas under Compute > Overview. You may need to request a quota increase.
  • Cannot connect via SSH:
    • Verify that the instance's Security Group allows incoming traffic on port 22.
    • Ensure the VPC router is correctly configured with an external gateway.
  • Floating IP status is "Down": This is normal if no traffic has been routed yet or if the instance is not actively responding to pings/requests.