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.
- Select your Project and go to Compute.
- Click Access & Security.
- Click the Floating IPs tab followed by Allocate IP to Project.
- Choose the Pool from which to pick the IP address.
- Click Allocate IP.
- In the Floating IPs list, click Associate.
- In the field Port to be associated, select the instance to which the floating IP should be associated.
- Click Associate.
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.