A private IP address is assigned to an instance's network-interface by the DHCP server. The address is visible from within the instance by using a command like “ip a”. The address is typically part of a private network and is used for communication between instances in the same broadcast domain via virtual switch (L2 agent on each compute node). It can also be accessible from instances in other private networks via virtual router (L3 agent).
A floating IP address is a service provided by Neutron. It's not using any DHCP service or being set statically within the guest. As a matter of fact the guest's operating system has no idea that it was assigned a floating IP address. The delivery of packets to the interface with the assigned floating address is the responsibility of Neutron's L3 agent. Instances with an assigned floating IP address can be accessed from the public network by the floating IP.
A floating IP address and a private IP address can be used at the same time on a single network-interface. The private IP address is likely to be used for accessing the instance by other instances in private networks while the floating IP address would be used for accessing the instance from public networks.
You can learn more about the difference between Floating IP and private IP from the RDO website. https://www.rdoproject.org/networking/difference-between-floating-ip-and-private-ip/
Navigate to Network -> Floating IPs using the second level navigation tabs
Click Allocate IP to Project on the right hand side of the screen
Make sure public is selected for Pool
Click Allocate IP
Go through the allocation process 2 more times so that you have a total of 3 floating IPs allocated to your project
We have now learned how to allocate floating IP addresses to our project. We can now associate these to instances in our project which we will do in a later lab.
In these labs, we are using Horizon to complete tasks. However, remember that there are three ways to interact with OpenStack.
We could accomplish these same tasks via the other 2 methods as well. In fact in some cases, the CLI and APIs have more options available than Horizon.
In our next lab, we will start working with security groups.