Can i set two Bond interfaces on the same couple eth ?

yena

Renowned Member
Nov 18, 2011
378
5
83
Hello,
i need two different class of IP on my local network.
Can i set Two Bond on the same couple interfaces ?
in my case: bond1 bond2 sharing eth4 eth5

-----------------------------------------------------------------------------
auto lo
iface lo inet loopback

iface eth0 inet manual
#WAN

iface eth1 inet manual

iface eth2 inet manual
#ceph

iface eth3 inet manual
#ceph

iface eth4 inet manual
#ha

iface eth5 inet manual
#ha

auto bond0
iface bond0 inet static
address 10.10.10.2
netmask 255.255.255.0
slaves eth2 eth3
bond_miimon 100
bond_mode balance-rr

auto bond1
iface bond1 inet static
address 192.168.100.2
netmask 255.255.255.0
slaves eth4 eth5
bond_miimon 100
bond_mode balance-rr

auto bond2
iface bond2 inet static
address 192.168.1.1
netmask 255.255.255.0
slaves eth4 eth5
bond_miimon 100
bond_mode balance-rr


auto vmbr0
iface vmbr0 inet static
address 185.36.73.132
netmask 255.255.252.0
gateway 185.36.72.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
----------------------------------------------------------------------------------------------------------------------

Thanks!
 
... or more simple is to use one bond(slaves eth4 eth5) and to have 2 different IP address on the same bond interface.

Can i Put Two different IP in two different classes ?
Like 192.168.100.2 and 192.168.1.1 ?

 
Hi,
no - you can use one interface in one bond only!
But with vlan-tagging you can create two bonds on different vlans which run boths on two NICs (I used that for ceph).

Udo

Please have you some link that explain this config ?
Thanks!
 
Can i Put Two different IP in two different classes ?
Like 192.168.100.2 and 192.168.1.1 ?

Yes, you can:

auto bond1
iface bond1 inet static
address 192.168.100.2
netmask 255.255.255.0
slaves eth4 eth5
bond_miimon 100
bond_mode balance-rr
up ip addr add 192.168.1.1/24 dev bond1

.... could be what you want!
 
  • Like
Reactions: yena
Yes, you can:

auto bond1
iface bond1 inet static
address 192.168.100.2
netmask 255.255.255.0
slaves eth4 eth5
bond_miimon 100
bond_mode balance-rr
up ip addr add 192.168.1.1/24 dev bond1

.... could be what you want!


Yes Perfect !
 
Yes, you can:

auto bond1
iface bond1 inet static
address 192.168.100.2
netmask 255.255.255.0
slaves eth4 eth5
bond_miimon 100
bond_mode balance-rr
up ip addr add 192.168.1.1/24 dev bond1

.... could be what you want!


No way dasn't work:

auto bond1
iface bond1 inet static
address 192.168.100.4
netmask 255.255.255.0
slaves eth4 eth5
bond_miimon 100
bond_mode balance-rr
up ip addr add 192.168.1.144/24 dev bond

Also after reboot..
 
Hi,
no - you can use one interface in one bond only!
But with vlan-tagging you can create two bonds on different vlans which run boths on two NICs (I used that for ceph).

Udo
Udo, do you have a reference configuration for this? I'm a bit stuck as I have a LACP bond for private CEPH, and another LACP bond I want for Public and also primary gateway/vlan bridges/etc.
 

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!