<div dir="ltr">Hi,<div><br></div><div>I'm not sure I understand the problem, but I have the feeling your use case is not supported.</div><div><br></div><div style>You can implement VLANs either with the 802.1Q [1] or the Open vSwitch [2] drivers.</div>

<div style><br></div><div style>However, you can only tag one VLAN per interfaces, which as far as I know, is the only thing that makes sense?</div><div style><br></div><div style>[1] <a href="http://opennebula.org/documentation:rel4.0:hm-vlan">http://opennebula.org/documentation:rel4.0:hm-vlan</a></div>

<div style>[2] <a href="http://opennebula.org/documentation:rel4.0:openvswitch">http://opennebula.org/documentation:rel4.0:openvswitch</a></div><div style><br></div><div style>Cheers,<br>Jaime</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Wed, Apr 24, 2013 at 1:04 PM, Alexandre Bezroutchko <span dir="ltr"><<a href="mailto:abb@gremwell.com" target="_blank">abb@gremwell.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On 04/23/2013 08:18 PM, Ionut Popovici wrote:<br>
> Hello i'm interested to know if there is any way to setup on and<br>
> template a<br>
> nic interface in TRUNK mode, the thing is that i wana a interface to<br>
> join in<br>
> more than 1 Vlan.<br>
> An example is that i wana to add an router on the network and pass the<br>
> traffic tru router but the router will handle more vlans, networks<br>
><br>
> The ideea is to manage the traffic tru a router or more but i don't<br>
> wana the<br>
> opennebula host to get involed to any traffic.<br>
</div>If you serious about your host not being involved into handling network<br>
traffic for VMs, you need to do PCI pass-through of your network cards<br>
to a separate network driver domain and do all bridging/routing there. I<br>
saw it in the list of features of xen-4.2 I think. Qubes OS uses such an<br>
arrangement, but they use earlier version of xen, probably backported<br>
some patches. You might be able to do the same with other hypervisors<br>
supporting PCI pass-through.<br>
<br>
If you put a bar little lower and accept the host working as a bridge,<br>
you should be able to have tagged traffic delivered from a physical<br>
interface to a VM using standard Linux bridge without any further<br>
trickery. Just use dummy network driver in Opennebula and terminate<br>
VLANs in your VM with vconfig.<br>
<br>
This will not let you choose what VLANs to bridge though. If you really<br>
need it perhaps you can use ebtables, use OpenVSwitch, or create a mess<br>
of intermediate bridges to "extract" individual VLANs and bridge them<br>
again together. None of this will be out-of-the-box though.<br>
<br>
Hope this helps.<br>
<br>
Cheers,<br>
Alex<br>
<div class="HOEnZb"><div class="h5">><br>
> Ex in template is<br>
> NIC=[<br>
>   IP="x.x.x.x",<br>
>   NETWORK="wan" ]<br>
> NIC=[<br>
>   NETWORK="lan1",<br>
>   NETWORK="lan2",<br>
> VLAN="YES",<br>
> VLAN_ID="64",<br>
> VLAN_ID="65" ]<br>
> TEMPLATE_ID="1023"<br>
><br>
> ideea is that on the second nic i i have an interface set on vlan<br>
> trunk mode<br>
> not access like vyatta<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Join us at <a href="http://opennebulaconf.com/" style="color:rgb(17,85,204)" target="_blank">OpenNebulaConf2013</a> in Berlin, <span><span>24-26 September, 2013</span></span><br>

--<div>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a></div>

</div>
</div>