summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-11-24 18:01:02 -0800
committerWilliam A. Kennington III <william@wkennington.com>2014-11-26 11:22:03 -0800
commit7005e289dabb387bd835fdf7d9cdfc0e94e56359 (patch)
tree2462ad71899ce5a15a541a3ed1b5a3e891253fb8 /nixos/modules
parentc7d46687c5ed499bc558718eb04e90842b3eb0fd (diff)
downloadnixlib-7005e289dabb387bd835fdf7d9cdfc0e94e56359.tar
nixlib-7005e289dabb387bd835fdf7d9cdfc0e94e56359.tar.gz
nixlib-7005e289dabb387bd835fdf7d9cdfc0e94e56359.tar.bz2
nixlib-7005e289dabb387bd835fdf7d9cdfc0e94e56359.tar.lz
nixlib-7005e289dabb387bd835fdf7d9cdfc0e94e56359.tar.xz
nixlib-7005e289dabb387bd835fdf7d9cdfc0e94e56359.tar.zst
nixlib-7005e289dabb387bd835fdf7d9cdfc0e94e56359.zip
nixos/network-interfaces: Promote secondary addresses when primary addresses expire
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/tasks/network-interfaces.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index 6fb6b77adb91..ca6240ac0949 100644
--- a/nixos/modules/tasks/network-interfaces.nix
+++ b/nixos/modules/tasks/network-interfaces.nix
@@ -576,6 +576,7 @@ in
       optionalString hasBonds "options bonding max_bonds=0";
 
     boot.kernel.sysctl = {
+      "net.net.ipv4.conf.all.promote_secondaries" = true;
       "net.ipv6.conf.all.disable_ipv6" = mkDefault (!cfg.enableIPv6);
       "net.ipv6.conf.default.disable_ipv6" = mkDefault (!cfg.enableIPv6);
       "net.ipv4.conf.all_forwarding" = mkDefault (any (i: i.proxyARP) interfaces);