After Deprec

openstack_cloud_computing_cookbook

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

Contents of this Issue

Navigation

Page 210 of 317

OpenStack Networking 200 5. Restart the required OpenStack Compute services, to pick up the changes: sudo restart nova-compute sudo restart nova-network 6. In order to separate private ranges per project (tenant), we get the ID of our tenant, that we will use when creating the network. On a client machine with the keystone client installed, run the following command: keystone tenant-list 7. We now create a private (fixed) network—that OpenStack Compute can use—for that particular tenant, as follows: sudo nova-manage network create --fixed_range_v4=10.0.1.0/24 --label cookbook --bridge br100 --project 950534b6b9d740ad887cce62011de77a 8. We can now create our floating public range that we will use to connect to our running instances. We do this as follows: sudo nova-manage floating create --ip_range=172.16.1.0/24 9. With this in place, we now have a bridge from our eth2 network and our internal network assigned to our instances. To ensure this works in a multi-network device host, run the following command to enable IP forwarding: sudo sysctl -w net.ipv4.ip_forward=1 10. When an instance spawns now, a private address is injected from our fixed address range into our instance. We then access this as before, by assigning a public floating IP to this instance, which associates this floating IP address with our instance's fixed IP address. How it works... FlatDHCPManager networking is a common option for networking, as it provides a flat network that is only limited by the IP address range assigned. It doesn't require a Linux operating system and the /etc/network/interfaces file in order to operate correctly through the use of standard DHCP for assigning addresses. In order to make FlatDHCPManager work, we manually configure our hosts with the same bridging, which is set to br100, as specified in /etc/nova/nova.conf: --flat_network_bridge=br100 Once set up, we configure our network range, where we can specify in our /etc/nova/ nova.conf configuration file the start of this range that our instances get when they start: --flat_network_dhcp_start=10.0.1.2 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