newbie network/bond question

manilx

Member
Mar 25, 2022
79
5
13
Hi

I've searched the forum before posting and read the docs but I'm unsure:

I'v just started and have it running on a Zotac i7 with 2 network ports. All is running fine and I'm already using 3 linux vm's.
Initially I only had one network port connected and this is what is being used. I'd like to add the 2nd one and use both as a bond BUT I'd like to keep all the IP config of the actual bridge. And this is were I'm afraid to proceed fearing getting locked out.
This is my current config:
ScreenShot 2022-03-25 at 13.38.01.png
I'd like to create a bond using both enp1s0 and enp2s0 and then having the bridge vmbr0 use it.

Please help.

Thx in advance!
 
Locking out isn't a problem as long as you got a keyboard+display connected. When the webUI isn't working anymore you can just edit the network config file directly (nano /etc/network/interfaces).

So you would need to remove enp2s0 from vmbr0, create a new Linux Bond with the enp1s0 + enp2s0 and then connect the bond0 to your vmbr0. Then hit "apply configuration" button so everything is changed at the same time. If you did it right everything should continue working. If not you need direct access to the server and change the config file by hand.
 
Thx for the info. Done that but didn't hit apply, can you check if it is OK?
ScreenShot 2022-03-25 at 15.44.31.png
--- /etc/network/interfaces 2022-03-25 06:08:37.634700006 +0000
+++ /etc/network/interfaces.new 2022-03-25 15:44:01.176364481 +0000
@@ -12,17 +12,25 @@
auto lo
iface lo inet loopback

+auto enp2s0
iface enp2s0 inet manual

+auto enp1s0
iface enp1s0 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.2.5/24
gateway 192.168.2.1
- bridge-ports enp2s0
+ bridge-ports bond0
bridge-stp off
bridge-fd 0

iface wlo1 inet manual

+auto bond0
+iface bond0 inet manual
+ bond-slaves enp1s0 enp2s0
+ bond-miimon 100
+ bond-mode balance-rr
+

 
Awesome. Applied and looks OK.
Thank you so much! (I'm used to Vsphere @business and still new here).
 
Spoke too soon....
One of my VM's is not getting an IP.
recreating it and it doesn't get an IP from DHCP.
Something is wrong
 
Reverted back to previous config (saved the /etc/network/interfaces before) and all OK again....
 
For those stumbling on this:

This entry in the interfaces worked as expected:

auto lo
iface lo inet loopback

iface enp1s0 inet manual

iface enp2s0 inet manual

auto bond0
iface bond0 inet manual
bond-slaves enp1s0 enp2s0
bond-miimon 100
bond-mode active-backup
bond-xmit-hash-policy layer2+3

auto vmbr0
iface vmbr0 inet static
address 192.168.2.5/24
gateway 192.168.2.1
bridge-ports bond0
bridge-stp off
bridge-fd 0

iface wlo1 inet manual
 

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!