[one-users] 802.1q tagging

Shi Jin jinzishuai at gmail.com
Sun Dec 19 09:05:46 PST 2010


I am curious about the same thing.
Is it possible to setup libvirt to have different VMs on the same phyiscal
NIC on the same physical machine to run under different VLAN? My
understanding is that VLAN is setup on the switch for each physical port.
Thanks.

Shi

On Sun, Dec 19, 2010 at 5:43 AM, Gnep Zhao <jass.zhao at gmail.com> wrote:

>
> Hi,
>
> I don't really understant:
>
> 1) create VLAN on the host --- I suppose the vlan is configured on the
> switch. Do you mean the host-wide vlan?
>
> 2) link VLAN to an interface on the host
>
> And  what's the difference between your solution (802.1q)  and
> openvswitch's?
>
> Gnep
>
>
> On Sun, Dec 19, 2010 at 6:31 AM, Rangababu Chakravarthula <
> rbabu at hexagrid.com> wrote:
>
>> John
>> Yes you can use 802.1q VLAN tagging to your VM interface.
>>
>> The following steps will help you do that.
>> 1)  create VLAN on the host
>> 2)  link VLAN to an interface on the host
>> 3) create a bridge on the host
>> 4) associate interface to the bridge
>> 5) Define the following in VM template
>>
>> NIC=[
>>   BRIDGE=<bridge name given above>,
>>   MAC=00:e5:8d:9f:c1:ba
>>    ]
>>
>> Hope this helps.
>> Ranga
>>
>> On Fri, Dec 17, 2010 at 7:45 PM, John Dewey <john at dewey.ws> wrote:
>>
>>> I was curious if anyone has used 802.1q tagging with their VMs.  It looks
>>> as though libvirt supports vlan tagging,
>>> but OpenNebula at this time does not generate an appropriate deployment
>>> stanza.
>>>
>>> I was hoping I could use network contextualization as a way to configure
>>> the guest's 802.1q tags.
>>> I guess I don't understand vlan tagging when "dom0" bridging is in the
>>> mix.
>>>
>>> Does anyone have anymore information on this topic, I would love to talk
>>> with you a bit more offline.
>>>
>>> Thanks -
>>> John
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> =================================================
>                          *Often wrong, Never in doubt*
> =================================================
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Shi Jin, Ph.D.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20101219/a4310fec/attachment-0003.htm>


More information about the Users mailing list