First flat network install

asked 2014-10-01 07:56:18 -0500

johnni21 gravatar image

updated 2014-10-01 10:36:26 -0500

mpetason gravatar image

Hi all,

I have 5 servers (1 controller, 4 compute), and I would like to test the openstack on it. Every server has two interfaces. eth0 is the public ip for example, eth1 private I installed ubuntu 14.04, nova, glance, cinder. Now I would like to set the networking, but I do not understand it. I would give a public IP to every host (, I would injected it to the vm. I do not need dhcp. But how can I do it?

So first create the br100 on the controller and the computes node:

auto br100
iface br100 inet manual
    bridge_stp off
        bridge_fd 0
    bridge_maxwait 0
    bridge_ports eth0

nova.conf on the controller:

network_api_class =
security_group_api = nova

nova.conf on the compute:

network_api_class =
security_group_api = nova
firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver
network_manager =
network_size = 64
allow_same_net_traffic = False
multi_host = True
flat_network_bridge = br100
flat_interface = eth0
public_interface = eth0

Then I restarted Services:

service nova-network restart
service nova-api-metadata restart

Create network:

nova-manage network create --multi_host=T --fixed_range_v4= --bridge=br100 --bridge_interface=br100 --num_networks=1 --network_size=64 --label=network100 --gateway= --dns1=

Boot the instance:

nova boot --flavor 1 --image precise-cloud --nic net-id=069dedb6-c97a-432c-bcf6-54b2b4311928,v4-fixed-ip=  --security_group default instance-1

Flat interface is the eth0, isn't it? Is the concept is good?

Thank you in advance, Johnni21

edit retag flag offensive close merge delete