Vlan mode switch setting

Asked by Hyunsun Moon

Hi,
I need some help to setup vlan mode deploy.
For now, I could run instances from compute nodes but the instances fail to get an IP address from network node.
I suspect vlan settings on the physical switch because there was no Rx packets passing vlan, only Tx packets.
Here's my question.

1. Should I create vlans used on Nova manually on the switch? Like vlan 100, every time?
2. I read that vlan trunking must be enabled on the switch. What does it mean? Does it mean making new trunking port? Which did not work. Or should I make all used ports to trunk mode?

Please shed some lights..

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Vish Ishaya
Solved:
Last query:
Last reply:
Revision history for this message
Best Vish Ishaya (vishvananda) said :
#1

On May 16, 2011, at 3:20 AM, Hyunsun Moon wrote:

> Question #157715 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/157715
>
> Description changed to:
> Hi,
> I need some help to setup vlan mode deploy.
> For now, I could run instances from compute nodes but the instances fail to get an IP address from network node.
> I suspect vlan settings on the physical switch because there was no Rx packets passing vlan, only Tx packets.
> Here's my question.
>
> 1. Should I create vlans used on Nova manually on the switch? Like vlan 100, every time?

You need to set up the switch to allow trunking of all the vlans nova will use. By default this is vlan100 - vlan100 + (n -1) where n is the number of projects you want to support.

> 2. I read that vlan trunking must be enabled on the switch. What does it mean? Does it mean making new trunking port? Which did not work. Or should I make all used ports to trunk mode?

All used ports need to be set up to pass traffic on the above vlans. In vlan mode, the hosts add vlan tags, so the switch has to be configured to simply pass these vlan tags along without modifying them. In general this means setting up all ports to allow trunking for each of the vlans that nova uses.

>
> Please shed some lights..
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Hyunsun Moon (hyunsun-moon) said :
#2

Thanks Vish Ishaya, that solved my question.

Revision history for this message
Hyunsun Moon (hyunsun-moon) said :
#3

It works, finally..!

Revision history for this message
Rangababu (rbabu) said :
#4

What if I have couple of machines on physical environment that are already part of a VLAN and I want one of my VM's to talk to them?
From the docs it seems like nova automatically assigns unused VLAN id, which in this case may not be the same as the physical VLAN