Issue link: https://read.uberflip.com/i/1334488
Chapter 10 207 An example of running the previous commands is as follows: 3. The output shown lists network ranges and their associated project IDs. From this, we can see we have 10.0.3.0/24 not assigned to a project (where it says None under the project column). To assign this network range to the development tenant, we issue the following commands: sudo nova-manage network modify --project=bfe40200d6ee413aa8062891a8270edb --fixed_range=10.0.3.0/24 4. When we view the output now for that network range, we will have this project ID assigned to it and any instances spawned under this tenant will be assigned an address in this range. How it works... When configuring tenants in our OpenStack environment, it is recommended (although not a requirement) to have their own private (fixed) range assigned to them. This allows for those instances in a particular tenant to be kept separated through their different ranges along with appropriately set security group rules. The syntax to modify a network is as follows: nova-manage network modify --project=project_id --fixed_range=ip_range Manually associating floating IPs to instances When an instance boots, it is assigned a private IP address. This IP range 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. There are two ways to allocate floating IPs to instances: either automatically, as the instance is spawned, or manually through our client tools. In both cases, our tenancy must have a range of floating IPs assigned to it so they can be allocated. www.it-ebooks.info

