Issue link: https://read.uberflip.com/i/1334488
OpenStack Networking 196 Configuring Flat networking In Flat networking, the IP addresses for our instances are injected from a defined subnet of IP addresses at launch. To make this work, a network bridge is configured the same on each compute and network host in our cloud environment. Only Linux distributions that keep their network information under /etc/network/interfaces support Flat networking. Getting ready To begin with, ensure you're logged into the OpenStack API server. If using the openstack1 host created in Chapter 1, Starting OpenStack Compute, we will have three interfaces in our virtual instance: f eth0 is a NAT to the host running VirtualBox f eth1 is our floating (public) network (172.16.0.0/16) f eth2 is our fixed (private) network (10.0.0.0/8) In a physical production environment, that first interface wouldn't be present and references to this NATed eth0 in the following section can be ignored. How to do it... To configure our OpenStack environment to use Flat networking, carry out the following steps: 1. OpenStack requires bridging in order for any of the network modes to work. The bridge tools are installed as dependencies when installing the OpenStack nova-network package, but if they aren't installed you can issue the following commands: sudo apt-get update sudo apt-get -y install bridge-utils 2. We first need to configure our network bridge (br100) by editing /etc/network/ interfaces, as follows: # The primary network interface auto eth0 iface eth0 inet dhcp # eth1 public auto eth1 www.it-ebooks.info

