# Connect or 'share' a Virtual Network across different nodes

**URL:** <https://forum.opennebula.io/t/connect-or-share-a-virtual-network-across-different-nodes/10040>\
**Category:** Installation & Configuration\
**Created:** [October 16, 2021, 12:38pm UTC](https://forum.opennebula.io/t/connect-or-share-a-virtual-network-across-different-nodes/10040 "2021-10-16T12:38:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EugenMayer](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/eugenmayer/32/7181_2.png) [@EugenMayer](https://forum.opennebula.io/u/EugenMayer)\
**Post date:** [October 16, 2021, 12:38pm UTC](https://forum.opennebula.io/t/connect-or-share-a-virtual-network-across-different-nodes/10040/1 "2021-10-16T12:38:28Z")

</div>

I’am trying to model a DC scenario where i have 1 frontend node (node physically speaking) and 2 additional compute nodes (hosts). All 3 are barebones with their own network and have no common LAN interface, just one WAN (with multiple public IPs).

My plan is to replace my current proxmox cluster with (proxmox+opnsense) with possible opennebula.

The concrete question is, can i create a virtual network and span this across those 2 nodes directly using opennebula (or connect 2 different virtual networks via a Virtal Router), or do i need to create the entire tunnel myself (this is what i used to have OPNsense for).

I looked at [Virtual Networks — OpenNebula 6.0.4 documentation](https://docs.opennebula.io/6.0/management_and_operations/network_management/manage_vnets.html) but did not find what i need. I’am also not able to get it running using 6.0/Debian10 and 6.1/Debian11 due to issues with the installation (opening questions for that)

I’am new to opennebula, so please bare wit me.

---

<div class="post-metadata">

**Author:** ![christaylor](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/christaylor/32/6719_2.png) [@christaylor](https://forum.opennebula.io/u/christaylor)\
**Post date:** [October 22, 2021, 8:10pm UTC](https://forum.opennebula.io/t/connect-or-share-a-virtual-network-across-different-nodes/10040/2 "2021-10-22T20:10:37Z")

</div>

I think the easiest and cleanest way is to plug your frontend and compute nodes into a switch that supports VLANs, and use VLAN tagging on your three hosts so they can all talk to each other on that VLAN. Then, in OpenNebula just define a virtual net with your IP configuration plus the VLAN ID you chose.
