switch to failover
This commit is contained in:
@@ -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
@@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user