Appearance
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
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.
- Navigate to Network > Floating IPs in the left sidebar.🌐Open Horizon
- Click Allocate IP To Project.
- Pool: Select the available external network (usually
publicorext-net). - 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.
- Navigate to Compute > Instances.
- Locate your instance and click the Actions dropdown menu on the far right.
- Select Associate Floating IP.
- In the dialog box:
- IP Address: Select the floating IP you just allocated.
- Port to be associated: Select the private IP of your instance.
- Click Associate.
Verify Connectivity
- On the Instances page, you should now see the floating IP listed alongside the private IP for your instance.
- Attempt to connect to the instance using the floating IP:bashNote: Ensure your security groups allow SSH traffic (port 22).
ssh <username>@<floating-ip>
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.