From 60376e768864150276f45e11e8b80e309e3ea851 Mon Sep 17 00:00:00 2001 From: clerie Date: Thu, 15 Aug 2024 19:40:37 +0200 Subject: [PATCH] hosts/carbon: Remove static IPv6 addressing --- hosts/carbon/net-gastnetz.nix | 6 ++++-- hosts/carbon/net-heimnetz.nix | 6 ++++-- hosts/carbon/net-iot.nix | 5 ++++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/hosts/carbon/net-gastnetz.nix b/hosts/carbon/net-gastnetz.nix index 9b1d968..361cc46 100644 --- a/hosts/carbon/net-gastnetz.nix +++ b/hosts/carbon/net-gastnetz.nix @@ -12,7 +12,6 @@ ]; networking.interfaces."net-gastnetz".ipv6.addresses = [ { address = "fd00:3214:9453:4920::1"; prefixLength = 64; } - { address = "2001:4cd8:100:1313::1"; prefixLength = 64; } # public IPs for local network ]; networking.interfaces."net-gastnetz".ipv4.addresses = [ { address = "192.168.32.1"; prefixLength = 24; } @@ -21,7 +20,10 @@ services.radvd.config = '' interface net-gastnetz { AdvSendAdvert on; - prefix 2001:4cd8:100:1313::/64 {}; + prefix ::/64 { + AdvValidLifetime 60; + AdvPreferredLifetime 30; + }; RDNSS 2620:fe::fe 2620:fe::9 {}; # Quad 9 }; ''; diff --git a/hosts/carbon/net-heimnetz.nix b/hosts/carbon/net-heimnetz.nix index 60e0bc6..36e42dd 100644 --- a/hosts/carbon/net-heimnetz.nix +++ b/hosts/carbon/net-heimnetz.nix @@ -14,7 +14,6 @@ networking.interfaces."net-heimnetz".ipv6.addresses = [ { address = "fe80::1"; prefixLength = 64; } { address = "fd00:152:152:4::1"; prefixLength = 64; } - { address = "2001:4cd8:100:1337::1"; prefixLength = 64; } # public IPs for local network ]; networking.interfaces."net-heimnetz".ipv4.addresses = [ { address = "10.152.4.1"; prefixLength = 24; } @@ -23,7 +22,10 @@ services.radvd.config = '' interface net-heimnetz { AdvSendAdvert on; - prefix 2001:4cd8:100:1337::/64 {}; + prefix ::/64 { + AdvValidLifetime 60; + AdvPreferredLifetime 30; + }; RDNSS fd00:152:152::1 {}; DNSSL net.clerie.de {}; }; diff --git a/hosts/carbon/net-iot.nix b/hosts/carbon/net-iot.nix index 43e3c57..96da523 100644 --- a/hosts/carbon/net-iot.nix +++ b/hosts/carbon/net-iot.nix @@ -23,7 +23,10 @@ services.radvd.config = '' interface net-iot { AdvSendAdvert on; - prefix fd00:152:152:205::/64 {}; + prefix ::/64 { + AdvValidLifetime 60; + AdvPreferredLifetime 30; + }; RDNSS fd00:152:152::1 {}; DNSSL iot.clerie.de {}; };