floating ip instance

Allocate a floating IP to an instance (4/5)

When you create an OpenStack instance, it receives a private IP address. Your instance is accessible for other instances with this private IP address . If you want to access your instance(s) over the internet, you'll need to assign a (floating) IP to these instances. A floating IP is an IP address on a external network. A floating IP address gives access to an instance to a private network from an external network.

Allocating a floating IP

When you created your instance it was automatically assigned with a fixed internal IP address. This IP address is permanently connected to the instance until it is terminated. Unlike the fixed IP address, you can modify the floating IP connections at any time.

  1. Select your Project and go to Compute.
  2. Click Access & Security.
  3. Click the Floating IPs tab followed by Allocate IP to Project.
  4. Choose the Pool from which to pick the IP address.
  5. Click Allocate IP.
  6. In the Floating IPs list, click Associate.
  7. In the field Port to be associated, select the instance to which the floating IP should be associated.
  8. Click Associate.
Adding a floating IP

Was this article helpful?


Next article:

How to log in to your instance (5/5)

After you have created your instance, you probably want to connect to it remotely. For Linux instances you need to use SSH (Secure Shell) and for Windows instances you need to create a RDP session (Remote Desktop Protocol). If you want to connect remotely to your instance from outside of your network you need to allocate and assign a floating IP first. Connect to a linux instance with an imported Key Pair For most new images the username is the distribution name with lowercase, for example: Ubuntu 18.