switch to failover

This commit is contained in:
Steffen Illium
2026-01-28 20:53:38 +01:00
parent 7fdadb5a25
commit 1e52bf6b9d
2 changed files with 4 additions and 8 deletions
-4
View File
@@ -27,15 +27,11 @@
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
# --- KERNEL NETWORK CONFIGURATION --- # --- KERNEL NETWORK CONFIGURATION ---
# CRITICAL FOR DOCKER + IPV6
# 1. Enable Forwarding (Required for Docker)
# 2. Force Accept RA = 2 (Required to get IPv6 address even if forwarding is on)
boot.kernel.sysctl = { boot.kernel.sysctl = {
"net.ipv4.ip_forward" = 1; "net.ipv4.ip_forward" = 1;
"net.ipv6.conf.all.forwarding" = 1; "net.ipv6.conf.all.forwarding" = 1;
"net.ipv6.conf.all.accept_ra" = 2; "net.ipv6.conf.all.accept_ra" = 2;
"net.ipv6.conf.default.accept_ra" = 2; "net.ipv6.conf.default.accept_ra" = 2;
"net.ipv6.conf.${lib.head config.vars.interfaces}.accept_ra" = 2;
}; };
boot.kernelModules = [ "rbd" "nbd" ]; boot.kernelModules = [ "rbd" "nbd" ];
+3 -3
View File
@@ -6,10 +6,10 @@
networking.bonds.bond0 = { networking.bonds.bond0 = {
interfaces = map (i: i.name) config.vars.interfaces; interfaces = map (i: i.name) config.vars.interfaces;
driverOptions = { driverOptions = {
mode = "802.3ad"; mode = "active-backup";
miimon = "100"; miimon = "100";
lacp_rate = "fast"; # lacp_rate = "fast";
xmit_hash_policy = "layer2+3"; # xmit_hash_policy = "layer2+3";
}; };
}; };