Is possible share NIC from different nodes?

jprrezende

New Member
May 5, 2023
4
0
1
Hi everyone,

I have the following scenario. A cluster with 2 nodes. Each node has 2 NICs. One of these NICs is a 10Gbps and is using to the cluster.
Besides, I have another 2 networks, one of them is the "main"(primary) and the other one is the "backup"(secondary).

I have a VM running im my cluster and this VM must be connected to theses two networks, but I have only one NIC available to this VM on each Node.
I want to know if is possible to share these two available NICs (one NIC of the node1 and one of the node2) to the VM. Because if it is possible, I can create a bond inside VM.

Or is possible to create a bond between the NIC available on node1 and node2, or something like this.

Thanks,
 
Last edited:
HI,
I am not sure if I understand your request exactly, but if so, what you can do is the following:
  • For each of your physical networks, create a Linux bridge on the host, configuring and attaching the respective interface to the bridge
  • Do the same configuration for the other node
  • Add/edit the virtual network adapters for the VM, attaching them to the respective bridge
By this, you will have two virtual interfaces within the VM, which are connected to their respective networks via the bridge.
 
HI,
I am not sure if I understand your request exactly, but if so, what you can do is the following:
  • For each of your physical networks, create a Linux bridge on the host, configuring and attaching the respective interface to the bridge
  • Do the same configuration for the other node
  • Add/edit the virtual network adapters for the VM, attaching them to the respective bridge
By this, you will have two virtual interfaces within the VM, which are connected to their respective networks via the bridge.
Hi Chris, I think I was not clear.

The nodes hardware are exactly the same. Each node has 2 NICS.
Node 1 - NIC1 - Connected directly to Node2 NIC1 (Interface to cluster)
Node 1 - NIC2 - Available

Node 2 - NIC1 - Connected directly to Node1 NIC1 (Interface to cluster)
Node 2 - NIC2 - Available

So I have two networks (principal/backup for failover propose)

There is a VM runing in my cluster. This VM must be connected to theses two networks (principal/backup). But each node has only one NIC available.

I want to know if is possbile to share, connect or bond the NIC2 of Node 1 and NIC2 of Node2 and some way use these two NICs in the VM.

Doing something like this I can connect NIC2 of Node1 to the principal network and NIC2 of Node 2 to the backup network.

Resuming my VM needs to be connected to theses tow networks but each node has only 1 NIC available.
 
Hi Chris, I think I was not clear.

The nodes hardware are exactly the same. Each node has 2 NICS.
Node 1 - NIC1 - Connected directly to Node2 NIC1 (Interface to cluster)
Node 1 - NIC2 - Available

Node 2 - NIC1 - Connected directly to Node1 NIC1 (Interface to cluster)
Node 2 - NIC2 - Available

So I have two networks (principal/backup for failover propose)

There is a VM runing in my cluster. This VM must be connected to theses two networks (principal/backup). But each node has only one NIC available.

I want to know if is possbile to share, connect or bond the NIC2 of Node 1 and NIC2 of Node2 and some way use these two NICs in the VM.

Doing something like this I can connect NIC2 of Node1 to the principal network and NIC2 of Node 2 to the backup network.

Resuming my VM needs to be connected to theses tow networks but each node has only 1 NIC available.
Well, this would require you to route traffic from node1 through the cluster interface to node2 in case of failure of the main network. It is probably possible to achieve this via failover routing, using the respective other node as gateway. But I think this is something the host should take care about, not the VM.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!