Issue link: https://read.uberflip.com/i/1334488
Chapter 10 199 How to do it... To configure our OpenStack environment to use Flat networking with DHCP, 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 iface eth1 inet static address 172.16.0.1 netmask 255.255.0.0 network 172.16.0.0 broadcast 172.16.255.255 # eth2 private auto br100 iface br100 inet manual bridge_ports eth2 bridge_stp off bridge_maxwait 0 bridge_fd 0 up ifconfig eth2 up 3. We then restart our network service to pick up the changes, as follows: sudo /etc/init.d/networking restart 4. We now configure OpenStack Compute to use the new bridged interface as part of our flat network. Add the following lines to /etc/nova/nova.conf: --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --network_manager=nova.network.manager.FlatDHCPManager --flat_network_dhcp_start=10.0.1.2 --flat_network_bridge=br100 --flat_interface=eth2 --flat_injected=False --public_interface=eth1 www.it-ebooks.info

