Issue link: https://read.uberflip.com/i/1334488
Chapter 10 197 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: --network_manager=nova.network.manager.FlatManager --flat_network_bridge=br100 --flat_interface=eth2 --public_interface=eth1 5. Restart the required OpenStack Compute services to pick up the changes: sudo restart nova-compute sudo restart nova-network 6. We now create a private (fixed) network that OpenStack Compute can use, as follows: sudo nova-manage network create --fixed_range_v4=10.0.1.0/24 --label flat --bridge br100 7. With this in place, we now have a bridge from our eth2 interface 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 8. We can now create our floating public range, which we will use to connect to our running instances, as follows: sudo nova-manage floating create --ip_range=172.16.1.0/24 9. When an instance spawns now, an address is injected from our address space into our instance. We can then access this, as before, by assigning a public floating IP to this instance, which associates this IP address with our instance's private IP address. www.it-ebooks.info

