Skip to content

Floating IP

A Floating IP is a public, routable IP address that you associate with a VM to make it reachable from the internet. Without a Floating IP, the VM is only accessible from within its private network.

Tip

We recommend restricting access to your VM from the Public network. You can achieve this in the Security Groups settings with appropriate rules.

Associate a Floating IP

Switch to Instances in the navigation, click on the "Arrow", and select Associate Floating IP.

image

  • Now click on the "Plus sign" and then on Associate.

image

  • Now select "public" and click on Allocate IP.

image

  • Now select the Public IP address and click on Associate.

image

  • The assigned Public IP address is now displayed, and you can access your VM via ssh using this address.

image

Via CLI

Allocate a Floating IP from the public pool:

openstack floating ip create public

Associate it with your VM:

openstack server add floating ip <instance-name> <floating-ip>

Now you can log in via SSH:

ssh -i <your-private-key> ubuntu@<floating-ip>