Two network cards in one

Aurex126

New Member
Mar 4, 2024
13
0
1
Good afternoon,
I have a computer with two network cards and proxmox with its corresponding virtual machines and containers.
I would like to combine these two network cards into one, with the same IP address.
Could you guide me?
thank you.
all the
best.
 
Hey,

you can bridge them together in your /etc/network/interfaces config.
With Proxmox there is a default bridge called vmbr0 - you can add your second NIC to the bridge-ports don't forget to restart your networking.service or simply change those settings via webgui: HOST > System > Network

Best
 
Hello!

Thank you very much for the quick help.

Right now, I have it as I have it in the first capture.

1709647617660.png

And as I understand you, I should eliminate vmbr1 and add emps20 to vmbr0, as seen in the second screenshot, right?

And thus all the traffic that is generated through the IP 192.168.31.250 will be divided by both cards.

Thank you

1709647697032.png
 
Yes, this will bridge your nic's into a single virtual one - don't forget that you will share one ip address between those card after you changed it. So you can plug your network cable in one of them. Don't forget to backup your current config somewhere so you can find it afterwards in case you have some problems.

Code:
iface enp6s0 inet manual
iface enp4s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address 10.0.0.5/24
    gateway 10.0.0.1
    bridge-ports enp6s0 enp4s0
    bridge-stp off
    bridge-fd 0

Best
 
brilliant!But do I understand that I have to have both network cables connected? one cable for each card.Thank you so much!
 
Nope, you can use just one network cable :) try it out for yourself - plug your cable in either one of your nic's and you will get the same ip address as before.

Thanks a lot
 
Ah! Ok, my intention is to increase the performance of the Proxmox network, with the addition of two network cards. That's why I was surprised when you told me to only connect a network card.

Thank you!
 
Thank you for the documentation you have passed me.

I have a question:

-Do I need 3 network cards for Linux Bond?


Thanks again
 
I think I'm not going to bother you anymore with this question (because I think I'm going too far, hehehe):From your experience: Which one would you use broadcast type? This would add the bandwidth of both cards, right?Thank you!!
 
This would add the bandwidth of both cards, right?Thank you!!
A bond is a solution for redundancy and/ or spit traffic over 2 or more nic card. you have only the speed of one nic card. e.g. 1 GBit/s duplex 2 GBit/s.
If you have 2 Streams every process can maximal use 1 GBit/s duplex 2 GBit/s. Thahts it's.

Please read the details in this paper: https://pve.proxmox.com/wiki/Network_Configuration#sysadmin_network_bond

Then there is a solution with SAMBA/ cifs that can handle multiply IP based, with same speed, same network cards and different IP Numbers, to max. the trought output of the connection. See the YT Channel of 45drives for tests.
 
Now it's true that I need help.I have created linux bond with the two cards I have and I have been left without connection on my Proxmox.Now I have no way to connect to it.What I can do?Thank you so much.
 
Hello,
Finally I was able to modify the network file from Proxmox itself and connect subsequently via the web.But the Linux bond configuration does not work.The case was that I could ping both IPs of the network cards, but without web connectivity.
What can happen?
Thank you!
1709799946634.png
 

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!