Hello everybody,
I ran into a situation where it would have been awesome to have a passive fallback nic. Now I'm kind of stuck on how to achieve that.
The goal is:
2x 10g in bond-mode 802.3ad
1x 1g in bond-mode active-backup
Summary:
bond0 = 2x 10g in bond-mode 802.3ad
bond1 = 1x 1g in bond-mode 802.3ad
bond2 = bond0 + bond1 in bond-mode active-backup and bond-primary bond0
vmbr1 = bridge-ports bond2
Will this configuration work?
If it doesn't, why?
If it does, is there a better way?
Edit://
I tried the modified configuration, and it works as expected.
The remaining question is whether there is a more elegant way to achieve the same without bloating the configuration the way I did.
I ran into a situation where it would have been awesome to have a passive fallback nic. Now I'm kind of stuck on how to achieve that.
The goal is:
2x 10g in bond-mode 802.3ad
1x 1g in bond-mode active-backup
Code:
auto lo
iface lo inet loopback
iface eno1 inet manual
#Onboard NIC, SW-P-17, 1g
auto enp5s0f0
iface enp5s0f0 inet manual
#PCIE DAC-0, SW-P-27, SFP+ 10g
auto enp5s0f1
iface enp5s0f1 inet manual
#PCIE DAC-1, SW-P-28, SFP+ 10g
auto enp4s0f0
iface enp4s0f0 inet manual
auto enp4s0f1
iface enp4s0f1 inet manual
auto bond0
iface bond0 inet manual
bond-slaves enp4s0f0 enp4s0f1 enp5s0f0 enp5s0f1
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2
bond-updelay 200
bond-downdelay 200
#Bond, DAC-0 + DAC-1
auto vmbr0
iface vmbr0 inet static
bridge-ports eno1
bridge-stp off
bridge-fd 0
bridge-stf off
#Onboard NIC
auto vmbr1
iface vmbr1 inet static
address 192.168.0.250/24
gateway 192.168.0.1
bridge-ports bond0
bridge-stp off
bridge-fd 0
#LAG DAC
auto vmbr3
iface vmbr3 inet manual
bridge-ports vlan3
bridge-stp off
bridge-fd 0
#Fritzbox Gastnetz
auto vlan3
iface vlan3 inet manual
vlan-raw-device bond0
#Fritzbox Gastnetz
Code:
auto lo
iface lo inet loopback
iface eno1 inet manual
#Onboard NIC, SW-P-17, 1g
auto enp5s0f0
iface enp5s0f0 inet manual
#PCIE DAC-0, SW-P-27, SFP+ 10g
auto enp5s0f1
iface enp5s0f1 inet manual
#PCIE DAC-1, SW-P-28, SFP+ 10g
auto enp4s0f0
iface enp4s0f0 inet manual
auto enp4s0f1
iface enp4s0f1 inet manual
auto bond0
iface bond0 inet manual
bond-slaves enp4s0f0 enp4s0f1 enp5s0f0 enp5s0f1
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2
bond-updelay 200
bond-downdelay 200
#Bond, DAC-0 + DAC-1
auto bond1
iface bond1 inet manual
bond-slaves eno1
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2
bond-updelay 200
bond-downdelay 200
#Bond, eno1
auto bond2
iface bond2 inet manual
bond-slaves bond0 bond1
bond-miimon 100
bond-mode active-backup
bond-primary bond0
bond-xmit-hash-policy layer2
bond-updelay 200
bond-downdelay 200
#Bond, bond0 + bond1, primary bond0
auto vmbr0
iface vmbr0 inet static
bridge-ports eno1
bridge-stp off
bridge-fd 0
bridge-stf off
#Onboard NIC
auto vmbr1
iface vmbr1 inet static
address 192.168.0.250/24
gateway 192.168.0.1
bridge-ports bond2
bridge-stp off
bridge-fd 0
#LAG, primary DAC + backup eno1
auto vmbr3
iface vmbr3 inet manual
bridge-ports vlan3
bridge-stp off
bridge-fd 0
#Fritzbox Gastnetz
auto vlan3
iface vlan3 inet manual
vlan-raw-device bond2
#Fritzbox Gastnetz
bond0 = 2x 10g in bond-mode 802.3ad
bond1 = 1x 1g in bond-mode 802.3ad
bond2 = bond0 + bond1 in bond-mode active-backup and bond-primary bond0
vmbr1 = bridge-ports bond2
Will this configuration work?
If it doesn't, why?
If it does, is there a better way?
Edit://
I tried the modified configuration, and it works as expected.
The remaining question is whether there is a more elegant way to achieve the same without bloating the configuration the way I did.
Last edited: