Bonding 10gbit and 1gbit NIC?

proxwolfe

Renowned Member
Jun 20, 2020
548
67
68
50
Hi,

I am about to build my second cluster (as I can‘t find a way to change the existing one) and I am wondering whether I can bond a 10gbit NIC with a 1gbit NIC for backup?

Unfortunately, I only have two 10gbit NICs in my nodes so I need to make the best of this. My thought is to use a 1gbit NIC as a backup for a 10gbit NIC. If the primary, fast NIC fails, I still have the secondary, slower one to take over until I have a chance to rectify the situation. And a slow connection would be better than no connection.

I would use one 10gbit each for Proxmox cluster traffic and Ceph cluster traffic. And a 1gbit NIC as backup.

If that works, that is.

Thoughts?
 
Yes you can, if you configure them in active-standby mode

You'll probably need to edit the network config to something like this;

Code:
# eth0 is manually configured, and slave to the "bond0" bonded NIC
auto eth0
iface eth0 inet manual
    bond-master bond0
    bond-primary eth0

# eth1 ditto, thus creating a 2-link bond.
auto eth1
iface eth1 inet manual
    bond-master bond0

# bond0 is the bonding NIC and can be used like any other normal NIC.
# bond0 is configured using static network information.
auto bond0
iface bond0 inet static
    address 192.168.1.10
    gateway 192.168.1.1
    netmask 255.255.255.0
    bond-mode active-backup
    bond-miimon 100
    bond-slaves none
 
Like bobmc already said active-standby should work. Did that here once with success. But many people recommended not to do it because it could create problems... but I don't remember what these problems should be. Maybe you want to do some additional research.
 
Found a couple of threads here that say it works.

Found a thread or two at HP forum that said it‘s technically not possible.

I think I will give it a try.