7.10. Adding Floating IP Addresses
When an instance is created in OpenStack, it is automatically assigned a fixed IP address in the network to which the instance is assigned. This IP address is permanently associated with the instance until the instance is terminated.
However, a floating IP address can also be attached to an instance (in addition to their fixed IP address). Unlike fixed IP addresses, floating IP addresses are able to have their associations modified at any time, regardless of the state of the instances involved. This procedure details the reservation of a floating IP address from an existing pool of addresses and the association of that address with a specific instance.
To associate floating IP addresses, you must have first:
- Created a pool of floating IP addresses
- Launched an instance.
Defining a pool of floating IP addresses is currently only possible using the command line interface. Reserving addresses and associating addresses with specific instances is possible using both the command line interface and the Dashboard.
This procedure details the reservation of a floating IP address from an existing pool of addresses and the association of that address with a specific Compute instance. This assumes that a pool of floating IP addresses has already been defined.
Refer to Section 8.9.3, “Adding Floating IP Addresses” for information about defining a pool of floating IP addresses.
Procedure 7.10. Adding Floating IP Addresses using the Dashboard
- Log in to the Dashboard.
- In the Project tab, click on under the menu.
- Click the button. The Allocate Floating IP window is displayed.
- Select a pool of addresses from the Pool list.
- In the Floating IPs tab, click on the button. The allocated IP address will appear in the Floating IPs table.
- Locate the newly allocated IP address in the Floating IPs table. On the same row click the button to assign the IP address to a specific instance.The Manage Floating IP Associations window is displayed.
- The IP Address field is automatically set to the selected floating IP address.Select the instance to associate the floating IP address with from the Instance list.
- Click the button to associate the IP address with the selected instance.
Note
To disassociate a floating IP address from an instance when it is no longer required use the button.
You have successfully associated a floating IP address with an instance using the Dashboard.
