Ask Your Question

Nova compute node with multiple interface

asked 2015-02-12 17:54:59 -0500

Prakash Sompura gravatar image

updated 2015-02-13 11:07:09 -0500

larsks gravatar image

My scenarios is like multinic flat manager show at flat manager

I am using CentOS6.6 on controller and compute nodes, there are multiple compute nodes. Each of My compute node has multiple bridges connected to VLANs. Each VM I will create in compute node will have either 1 or 2 NIC depending on the requirement. These NICs will have their static IP and both should be connected to different bridge of compute node. How can I achieve this? For example:

Computenode1 has br0 - VLAN, br1 - VLAN, br2 - VLAN -, br3 - VLAN -, br4 - 38.102.164/24

1st NIC of each VM will be connected to either of br0 / br1 / br2. 2nd NIC of VM (if it has) will be connected to either of br3 / br4.

How can I configure this using nova network.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-02-13 10:58:20 -0500

Poonam Agarwal gravatar image

You need to use VLAN Manager with nova-network. To configure VlanManager networking in OpenStack, put the following lines into your nova.conf file:

#We point OpenStack to use VlanManager here: 

#Interface on which virtual vlan interfaces will be created:

#The first tag number for private vlans 
#(in this case, vlan numbers lower than 100 can serve our
#internal purposes and will not be consumed by tenants):

You can use the same manual for using multinic

edit flag offensive delete link more


Thanks indeed. I have total 4 VLAN interface on my compute node, eth0 to eth3. I have 2 VLANs on eth0, 3 VLANs on eth1, 5 VLANs on eth2 and 2 VLANs on eth3. Each instance will have eth{0-2} may be 1 or 2 or 3 virtual NIC. Can I define multiple vlan_interface in /etc/nova/nova.conf file?

Prakash Sompura gravatar imagePrakash Sompura ( 2015-02-17 18:39:20 -0500 )edit

Hello Prakash, I think the key may be presenting the VLAN's to the interfaces ( possibly bonded ) as a trunk so that you could define multiple Virtual Networks with different VLAN ID's. In nova.conf you only need to specify the vlan_start ID .

Poonam Agarwal gravatar imagePoonam Agarwal ( 2015-02-18 03:22:23 -0500 )edit

answered 2015-02-20 17:38:24 -0500

Prakash Sompura gravatar image

updated 2015-02-20 17:38:49 -0500

Thanks Poonam. I have moved VLANs from two of my Ethernet to single. Remaining 1 was connected to NAS (iSCSI) which actually I have to take care by Cinder. However I have pre-existing volumes and I have asked a separate question for that. This  question can be considered closed.
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-02-12 17:54:59 -0500

Seen: 956 times

Last updated: Feb 20 '15