After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 219 of 317

Chapter 10 209 3. To associate this address to an instance, we issue the following command: nova add-floating-ip 6c79552c-7006-4b74-a037-ebe9707cc9ce 172.16.1.1 We are now able to communicate with that instance using this assigned floating IP address. How it works... Instances are not instantly accessible outside of the OpenStack host unless a public IP address is attached to it. Manually associating an address consists of the following two steps: 1. Allocating an address from the available IP range. 2. Associating the address with an instance. This is an important concept, as it allows you to control the allocation of IP addresses as well as allocating specific addresses to specific instances, which is very much like Amazon's Elastic IP feature. Manually disassociating floating IPs from instances In our cloud environment, we have the ability to add and remove access to and from the instance publicly by adding or removing a floating IP address to or from it. This flexibility allows us to move services seamlessly between instances. To the outside world it would appear to be the same instance, as their access to it via that IP has not changed to them. Getting ready To begin with, ensure you are logged in to a client machine running euca2ools or Nova Client. How to do it... To disassociate a public (floating) address from an instance using euca2ools, carry out the following steps: 1. We first list the instances in our environment, to identify the instance we wish to remove the public IP address from, as follows: euca-describe-instances 2. Once we have identified the instance we wish to disassociate the IP from, we execute the following command: euca-disassociate-address 172.16.1.1 www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook