Issue link: https://read.uberflip.com/i/1334488
OpenStack Networking 210 3. This instantly removes the association between this address and the instance. If we no longer require that floating IP address for our project, we can remove it from our project's pool by issuing the following command: euca-release-address 172.16.1.1. To disassociate a public (floating) address from an instance using Nova Client, carry out the following: 1. We first list the instance in our environment, to identify the instance we wish to remove the public IP address from, as follows: nova list 2. Once we have identified the instance we wish to disassociate the IP from, we execute the following command: nova remove-floating-ip 2abf8d8d-6f45-42a5-9f9f- 63b6a956b74f 172.16.1.1 3. This instantly removes the association with this address from the instance. If we no longer require that floating IP address for our project, we can remove it from our project's pool by issuing the following command: nova floating-ip-delete 172.16.1.1 How it works... Removing a floating IP address is very straightforward. When using euca2ools, we use the euca-disassociate-address command or, when using Nova Client, we use the remove-floating-ip option to the nova command. Automatically assigning floating IPs When an instance boots, it is assigned a private IP address. This private IP address is only accessible within our virtual environment's network. To access this instance to serve the rest of the network or the public, we need to assign it a floating IP, which is the range we configure when we set up public IP ranges. Automatically assigning floating IPs to instances gives us the ability, in our environment, to have access to all instances on our network. Although there are times when we might want to manually assign addresses (for example, where we have a limited number of IPs assigned to a tenancy), the convenience of having this done for you is very beneficial and makes our OpenStack environment operate much closer to how Amazon EC2 operates. www.it-ebooks.info

